summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-11-09 23:28:47 +0000
committeradrian <adrian@FreeBSD.org>2011-11-09 23:28:47 +0000
commit273ff1fe2a7f71062d455a8b73175ac9c6125449 (patch)
tree7414c418119589d9ab1a922c3a0dd6e7a0971f48
parente5b49f0c7ed315e158898613578059687b2a1746 (diff)
downloadFreeBSD-src-273ff1fe2a7f71062d455a8b73175ac9c6125449.zip
FreeBSD-src-273ff1fe2a7f71062d455a8b73175ac9c6125449.tar.gz
Bump this up to where it used to be.
I need to investigate this a little closer, but it seems that in noisy environments the NF load takes longer than 5 * DELAY(10) and this is messing up future NF calibrations. (The background: NF calibrations begin at the value programmed in after the load has completed, so if this is never loaded in, the NF calibrations only ever start at the currently calibrated NF value, rather than starting at something high (say -50.) More investigation about the effect on 11n RX and calibration results are needed. Sponsored by: Hobnob, Inc.
-rw-r--r--sys/dev/ath/ath_hal/ar5416/ar5416_cal.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c b/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
index cb57870..d51417f4 100644
--- a/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
+++ b/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c
@@ -642,15 +642,7 @@ ar5416LoadNF(struct ath_hal *ah, const struct ieee80211_channel *chan)
OS_REG_SET_BIT(ah, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_NF);
/* Wait for load to complete, should be fast, a few 10s of us. */
- /*
- * XXX For now, don't be so aggressive in waiting for the NF
- * XXX load to complete. A very busy 11n RX load will cause this
- * XXX to always fail; so just leave it.
- * XXX Later on we may wish to split longcal into two parts - one to do
- * XXX the initial longcal, and one to load in an updated NF value
- * XXX once it's finished - say, by checking it every 500ms.
- */
- if (! ar5212WaitNFCalComplete(ah, 5)) {
+ if (! ar5212WaitNFCalComplete(ah, 1000)) {
/*
* We timed out waiting for the noisefloor to load, probably due to an
* in-progress rx. Simply return here and allow the load plenty of time
OpenPOWER on IntegriCloud