Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jan 2015 07:33:03 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r277290 - head/sys/dev/ath/ath_hal/ar5416
Message-ID:  <201501170733.t0H7X3XI085646@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sat Jan 17 07:33:02 2015
New Revision: 277290
URL: https://svnweb.freebsd.org/changeset/base/277290

Log:
  Oops; correctly reload the CCA registers with the uncapped value
  in prep for the next NF calibration pass.
  
  Totally missing braces.  Damn you C.
  
  Submitted by:	Sascha Wildner <swildner@dragonflybsd.org>
  MFC after:	1 week

Modified:
  head/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c

Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c	Sat Jan 17 07:01:51 2015	(r277289)
+++ head/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c	Sat Jan 17 07:33:02 2015	(r277290)
@@ -663,7 +663,7 @@ ar5416LoadNF(struct ath_hal *ah, const s
 	 * by the median we just loaded.  This will be initial (and max) value
 	 * of next noise floor calibration the baseband does.  
 	 */
-	for (i = 0; i < AR5416_NUM_NF_READINGS; i ++)
+	for (i = 0; i < AR5416_NUM_NF_READINGS; i ++) {
 
 		/* Don't write to EXT radio CCA registers unless in HT/40 mode */
 		/* XXX this check should really be cleaner! */
@@ -676,6 +676,7 @@ ar5416LoadNF(struct ath_hal *ah, const s
 			val |= (((uint32_t)(-50) << 1) & 0x1ff);
 			OS_REG_WRITE(ah, ar5416_cca_regs[i], val);
 		}
+	}
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501170733.t0H7X3XI085646>