ath9k_hw: Update CCK spur mitigation for AR9462
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Mon, 24 Oct 2011 12:44:39 +0000 (18:14 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Nov 2011 20:54:29 +0000 (15:54 -0500)
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>
drivers/net/wireless/ath/ath9k/ar9003_phy.c

index fe96997921d322bb96b1f4dc42a551769e722f7d..04b060af5087af230f261d4950c7b55a3b771591 100644 (file)
@@ -198,12 +198,14 @@ static void ar9003_hw_spur_mitigate_mrc_cck(struct ath_hw *ah,
                        synth_freq = chan->channel;
                }
        } else {
-               range = 10;
+               range = AR_SREV_9462(ah) ? 5 : 10;
                max_spur_cnts = 4;
                synth_freq = chan->channel;
        }
 
        for (i = 0; i < max_spur_cnts; i++) {
+               if (AR_SREV_9462(ah) && (i == 0 || i == 3))
+                       continue;
                negative = 0;
                if (AR_SREV_9485(ah) || AR_SREV_9340(ah) || AR_SREV_9330(ah))
                        cur_bb_spur = FBIN2FREQ(spur_fbin_ptr[i],