diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-05-23 12:20:54 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-05-24 12:50:21 -0400 |
commit | 23dd9b2a43698df12f7951e0e5a5fbffd0b3108a (patch) | |
tree | a3c723c144d21b8c99f1468185ab6ec6c7d99f61 /drivers/net/wireless/ath/ath9k | |
parent | beaee9cac180e37bbb30d538bcea0ebbcf4fba0e (diff) | |
download | blackbird-op-linux-23dd9b2a43698df12f7951e0e5a5fbffd0b3108a.tar.gz blackbird-op-linux-23dd9b2a43698df12f7951e0e5a5fbffd0b3108a.zip |
ath9k_hw: fix spur mitigation issues on AR934x
Do not subtract spur power from noise floor on this chip, as it can lead
to packet loss and other connectivity issues.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_phy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c index 2bf6548dd143..e1714d7c9eeb 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c @@ -334,7 +334,8 @@ static void ar9003_hw_spur_ofdm(struct ath_hw *ah, REG_RMW_FIELD(ah, AR_PHY_SPUR_REG, AR_PHY_SPUR_REG_EN_VIT_SPUR_RSSI, 1); - if (REG_READ_FIELD(ah, AR_PHY_MODE, + if (!AR_SREV_9340(ah) && + REG_READ_FIELD(ah, AR_PHY_MODE, AR_PHY_MODE_DYNAMIC) == 0x1) REG_RMW_FIELD(ah, AR_PHY_SPUR_REG, AR_PHY_SPUR_REG_ENABLE_NF_RSSI_SPUR_MIT, 1); |