aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/calib.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2010-03-17 04:55:21 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-03-23 16:50:15 -0400
commit02afa2a01b74ed3e8f3a85be11919b33f4ad4f02 (patch)
tree086268112658323376b6ac993b157998db9f22a3 /drivers/net/wireless/ath/ath9k/calib.c
parent2cbfaea48500ce98588e31bd806bbfb524b36b31 (diff)
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 <Sujith.Manoharan@atheros.com> Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/calib.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/calib.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c
index e76dd7498653..d5026e4f484b 100644
--- a/drivers/net/wireless/ath/ath9k/calib.c
+++ b/drivers/net/wireless/ath/ath9k/calib.c
@@ -1059,9 +1059,12 @@ bool ath9k_hw_calibrate(struct ath_hw *ah, struct ath9k_channel *chan,
1059 /* Do NF cal only at longer intervals */ 1059 /* Do NF cal only at longer intervals */
1060 if (longcal) { 1060 if (longcal) {
1061 /* Do periodic PAOffset Cal */ 1061 /* Do periodic PAOffset Cal */
1062 if (AR_SREV_9271(ah)) 1062 if (AR_SREV_9271(ah)) {
1063 ath9k_hw_9271_pa_cal(ah, false); 1063 if (!ah->pacal_info.skipcount)
1064 else if (AR_SREV_9285_11_OR_LATER(ah)) { 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)) {
1065 if (!ah->pacal_info.skipcount) 1068 if (!ah->pacal_info.skipcount)
1066 ath9k_hw_9285_pa_cal(ah, false); 1069 ath9k_hw_9285_pa_cal(ah, false);
1067 else 1070 else