diff options
author | adrian <adrian@FreeBSD.org> | 2011-10-25 23:01:53 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-10-25 23:01:53 +0000 |
commit | 04a73f171eafd274361841cd2bfc0f3813520049 (patch) | |
tree | 685f1ef7024a55eb74ca2143c3a3d0c398adc795 /sys/dev/ath | |
parent | 32375609ae46987c33a70f1edeb4e7a6eaf69e56 (diff) | |
download | FreeBSD-src-04a73f171eafd274361841cd2bfc0f3813520049.zip FreeBSD-src-04a73f171eafd274361841cd2bfc0f3813520049.tar.gz |
Reduce the NF wait timeout. When doing heavy 11n RX loads, this can actually
interfere with traffic, as the NF load can take quite a while and poking the
AGC every 10uS is just a bit silly.
Instead, just leave the baseband NF calibration where it is and just read it
back next time a longcal interval happens.
Diffstat (limited to 'sys/dev/ath')
-rw-r--r-- | sys/dev/ath/ath_hal/ar5416/ar5416_cal.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c b/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c index d51417f4..cb57870 100644 --- a/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c +++ b/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c @@ -642,7 +642,15 @@ 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. */ - if (! ar5212WaitNFCalComplete(ah, 1000)) { + /* + * 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)) { /* * 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 |