Author: adrian
Date: Sat Jan 29 14:36:31 2011
New Revision: 218069
URL: http://svn.freebsd.org/changeset/base/218069

Log:
  Avoid writing CCA threshold values for the EXT radios for non-HT40 channels.

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 29 14:27:20 
2011        (r218068)
+++ head/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c        Sat Jan 29 14:36:31 
2011        (r218069)
@@ -573,6 +573,12 @@ ar5416LoadNF(struct ath_hal *ah, const s
        h = AH5416(ah)->ah_cal.nfCalHist;
        HALDEBUG(ah, HAL_DEBUG_NFCAL, "CCA: ");
        for (i = 0; i < AR5416_NUM_NF_READINGS; i ++) {
+
+               /* Don't write to EXT radio CCA registers */
+               /* XXX this check should really be cleaner! */
+               if (i >= 3 && !IEEE80211_IS_CHAN_HT40(chan))
+                       continue;
+
                if (chainmask & (1 << i)) { 
                        int16_t nf_val;
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to