]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath9k: enable manual peak cal for all ar9300 chips
authorMiaoqing Pan <miaoqing@codeaurora.org>
Fri, 26 Feb 2016 08:08:41 +0000 (16:08 +0800)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 11 Mar 2016 11:59:59 +0000 (13:59 +0200)
HW peak detect calibration would fail, enable all ar9300
chips manual peak calibration instead.

Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/ar9003_calib.c

index 0c391997a2f77709cf5f7531dbcdeadc338b4aed..99bc1a6393c686301752e8ffe59b793459183e64 100644 (file)
@@ -1641,14 +1641,12 @@ static bool ar9003_hw_init_cal_soc(struct ath_hw *ah,
 
 skip_tx_iqcal:
        if (run_agc_cal || !(ah->ah_flags & AH_FASTCC)) {
-               if (AR_SREV_9330_11(ah) || AR_SREV_9531(ah) || AR_SREV_9550(ah) ||
-                   AR_SREV_9561(ah)) {
-                       for (i = 0; i < AR9300_MAX_CHAINS; i++) {
-                               if (!(ah->rxchainmask & (1 << i)))
-                                       continue;
-                               ar9003_hw_manual_peak_cal(ah, i,
-                                                         IS_CHAN_2GHZ(chan));
-                       }
+               for (i = 0; i < AR9300_MAX_CHAINS; i++) {
+                       if (!(ah->rxchainmask & (1 << i)))
+                               continue;
+
+                       ar9003_hw_manual_peak_cal(ah, i,
+                                                 IS_CHAN_2GHZ(chan));
                }
 
                /*