Skip to content

Commit 02afa2a

Browse files
Sujithlinvjw
authored andcommitted
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: Sujith <[email protected]> Signed-off-by: Vasanthakumar Thiagarajan <[email protected]> Signed-off-by: Luis R. Rodriguez <[email protected]> Signed-off-by: John W. Linville <[email protected]>
1 parent 2cbfaea commit 02afa2a

File tree

1 file changed

+6
-3
lines changed
  • drivers/net/wireless/ath/ath9k

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,9 +1059,12 @@ bool ath9k_hw_calibrate(struct ath_hw *ah, struct ath9k_channel *chan,
10591059
/* Do NF cal only at longer intervals */
10601060
if (longcal) {
10611061
/* Do periodic PAOffset Cal */
1062-
if (AR_SREV_9271(ah))
1063-
ath9k_hw_9271_pa_cal(ah, false);
1064-
else if (AR_SREV_9285_11_OR_LATER(ah)) {
1062+
if (AR_SREV_9271(ah)) {
1063+
if (!ah->pacal_info.skipcount)
1064+
ath9k_hw_9271_pa_cal(ah, false);
1065+
else
1066+
ah->pacal_info.skipcount--;
1067+
} else if (AR_SREV_9285_11_OR_LATER(ah)) {
10651068
if (!ah->pacal_info.skipcount)
10661069
ath9k_hw_9285_pa_cal(ah, false);
10671070
else

0 commit comments

Comments
 (0)