diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-06-27 14:58:19 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-28 14:37:46 -0400 |
commit | 73dc3eb8b93eda8101dcd6c0b2a0db00f4bc74fd (patch) | |
tree | a6e049f492f6ef342960741cc224560e0a94579a /drivers/net/wireless/ath/ath9k/ani.h | |
parent | 26b6da6b7829dc7cf5d21e854564be90c7928323 (diff) | |
download | linux-73dc3eb8b93eda8101dcd6c0b2a0db00f4bc74fd.tar.gz linux-73dc3eb8b93eda8101dcd6c0b2a0db00f4bc74fd.tar.bz2 linux-73dc3eb8b93eda8101dcd6c0b2a0db00f4bc74fd.zip |
ath9k: fix ANI operation in AP mode
ath9k_ani_reset (which is called at reset time) uses a state variable
ani->update_ani to prevent the ANI noise immunity state on the operating
channel from being overwritten by background scans. Unfortunately this
is also being set for AP mode, since it's mixed with code that is only
supposed to change the default settings after a reset.
In AP mode this has the side effect of having ANI run, but being unable to
change its runtime noise immunity level, making it effectively useless.
Fix this by getting rid of ani->update_ani and passing a parameter to
ath9k_hw_set_ofdm_nil and ath9k_hw_set_cck_nil instead.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Cc: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ani.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ani.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ani.h b/drivers/net/wireless/ath/ath9k/ani.h index e9d841bbe86f..1485bf5e3518 100644 --- a/drivers/net/wireless/ath/ath9k/ani.h +++ b/drivers/net/wireless/ath/ath9k/ani.h @@ -114,7 +114,6 @@ struct ar5416AniState { u8 firstepLevel; u8 ofdmWeakSigDetect; u8 cckWeakSigThreshold; - bool update_ani; u32 listenTime; int32_t rssiThrLow; int32_t rssiThrHigh; |