diff options
author | Rajkumar Manoharan <rmanohar@qca.qualcomm.com> | 2011-10-24 08:44:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-08 15:54:29 -0500 |
commit | 38df2f07b7bc5309ebb159438b435d1f25f31e35 (patch) | |
tree | 22eb1159231f564070bd4fa5be760d3b256ea275 /drivers/net/wireless/ath/ath9k/ar9003_phy.c | |
parent | 43bc3e89cf3d2ad2ec827212ef0e69a21c0421b9 (diff) |
ath9k_hw: Update CCK spur mitigation for AR9462
To improve CCK sensitivity for AR9462 chips, performing
spur mitigation at 2440, 2464 frequencies alone is sufficient.
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9003_phy.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_phy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c index fe96997921d3..04b060af5087 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c | |||
@@ -198,12 +198,14 @@ static void ar9003_hw_spur_mitigate_mrc_cck(struct ath_hw *ah, | |||
198 | synth_freq = chan->channel; | 198 | synth_freq = chan->channel; |
199 | } | 199 | } |
200 | } else { | 200 | } else { |
201 | range = 10; | 201 | range = AR_SREV_9462(ah) ? 5 : 10; |
202 | max_spur_cnts = 4; | 202 | max_spur_cnts = 4; |
203 | synth_freq = chan->channel; | 203 | synth_freq = chan->channel; |
204 | } | 204 | } |
205 | 205 | ||
206 | for (i = 0; i < max_spur_cnts; i++) { | 206 | for (i = 0; i < max_spur_cnts; i++) { |
207 | if (AR_SREV_9462(ah) && (i == 0 || i == 3)) | ||
208 | continue; | ||
207 | negative = 0; | 209 | negative = 0; |
208 | if (AR_SREV_9485(ah) || AR_SREV_9340(ah) || AR_SREV_9330(ah)) | 210 | if (AR_SREV_9485(ah) || AR_SREV_9340(ah) || AR_SREV_9330(ah)) |
209 | cur_bb_spur = FBIN2FREQ(spur_fbin_ptr[i], | 211 | cur_bb_spur = FBIN2FREQ(spur_fbin_ptr[i], |