Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jan 2011 14:36:31 +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: r218069 - head/sys/dev/ath/ath_hal/ar5416
Message-ID:  <201101291436.p0TEaVU4035096@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



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