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

Commit 02afa2a0 authored by Sujith's avatar Sujith Committed by John W. Linville
Browse files

ath9k_hw: use the skip count for PA calibration on AR9271



Periodic power amplifier offset calibration is skipped on ath9k
algorithmically, this is required on AR9271.

Signed-off-by: default avatarSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarVasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 2cbfaea4
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -1059,9 +1059,12 @@ bool ath9k_hw_calibrate(struct ath_hw *ah, struct ath9k_channel *chan,
	/* Do NF cal only at longer intervals */
	if (longcal) {
		/* Do periodic PAOffset Cal */
		if (AR_SREV_9271(ah))
		if (AR_SREV_9271(ah)) {
			if (!ah->pacal_info.skipcount)
				ath9k_hw_9271_pa_cal(ah, false);
		else if (AR_SREV_9285_11_OR_LATER(ah)) {
			else
				ah->pacal_info.skipcount--;
		} else if (AR_SREV_9285_11_OR_LATER(ah)) {
			if (!ah->pacal_info.skipcount)
				ath9k_hw_9285_pa_cal(ah, false);
			else