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 <swild...@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);
                }
+       }
 }
 
 /*
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to