Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27ae9cd2 authored by Miaoqing Pan's avatar Miaoqing Pan Committed by Kalle Valo
Browse files

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: default avatarMiaoqing Pan <miaoqing@codeaurora.org>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent fcf5dfda
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -1641,15 +1641,13 @@ 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 non-AR9550 chips, we just trigger AGC calibration