Skip to content

Commit 27ae9cd

Browse files
miaoqing-pankvalo
authored andcommitted
ath9k: enable manual peak cal for all ar9300 chips
HW peak detect calibration would fail, enable all ar9300 chips manual peak calibration instead. Signed-off-by: Miaoqing Pan <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent fcf5dfd commit 27ae9cd

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

drivers/net/wireless/ath/ath9k/ar9003_calib.c

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,14 +1641,12 @@ static bool ar9003_hw_init_cal_soc(struct ath_hw *ah,
16411641

16421642
skip_tx_iqcal:
16431643
if (run_agc_cal || !(ah->ah_flags & AH_FASTCC)) {
1644-
if (AR_SREV_9330_11(ah) || AR_SREV_9531(ah) || AR_SREV_9550(ah) ||
1645-
AR_SREV_9561(ah)) {
1646-
for (i = 0; i < AR9300_MAX_CHAINS; i++) {
1647-
if (!(ah->rxchainmask & (1 << i)))
1648-
continue;
1649-
ar9003_hw_manual_peak_cal(ah, i,
1650-
IS_CHAN_2GHZ(chan));
1651-
}
1644+
for (i = 0; i < AR9300_MAX_CHAINS; i++) {
1645+
if (!(ah->rxchainmask & (1 << i)))
1646+
continue;
1647+
1648+
ar9003_hw_manual_peak_cal(ah, i,
1649+
IS_CHAN_2GHZ(chan));
16521650
}
16531651

16541652
/*

0 commit comments

Comments
 (0)