Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH 3.10 1/3] ath9k_hw: fix spur mitigation issues on AR934x
@ 2013-05-23 10:20 Felix Fietkau
  2013-05-23 10:20 ` [PATCH 3.10 2/3] ath9k_hw: fix host interface reset " Felix Fietkau
  2013-05-23 10:20 ` [PATCH 3.10 3/3] ath9k_hw: improve performance for AR934x v1.3+ Felix Fietkau
  0 siblings, 2 replies; 3+ messages in thread
From: Felix Fietkau @ 2013-05-23 10:20 UTC (permalink / raw)
  To: linux-wireless; +Cc: linville, mcgrof

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>
---
 drivers/net/wireless/ath/ath9k/ar9003_phy.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
index 2bf6548..e1714d7 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);
-- 
1.8.0.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-05-23 10:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-23 10:20 [PATCH 3.10 1/3] ath9k_hw: fix spur mitigation issues on AR934x Felix Fietkau
2013-05-23 10:20 ` [PATCH 3.10 2/3] ath9k_hw: fix host interface reset " Felix Fietkau
2013-05-23 10:20 ` [PATCH 3.10 3/3] ath9k_hw: improve performance for AR934x v1.3+ Felix Fietkau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox