aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2009-08-25 23:09:52 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-28 14:40:47 -0400
commit20caf0dd4131d030c2a4099e2c2766ec7a5e83ea (patch)
treec45c56d135b6424c476bd2db6e444a62a7108658 /drivers/net
parent0abb0968795b55ecb102bf635a94a087bbb5aff5 (diff)
ath9k: Handle PA cal usage properly
PA Calibration is not needed for high power solutions. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/ath9k/calib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c
index f9de16c3131a..3234995e8881 100644
--- a/drivers/net/wireless/ath/ath9k/calib.c
+++ b/drivers/net/wireless/ath/ath9k/calib.c
@@ -879,6 +879,11 @@ static inline void ath9k_hw_9285_pa_cal(struct ath_hw *ah, bool is_reset)
879 879
880 DPRINTF(ah->ah_sc, ATH_DBG_CALIBRATE, "Running PA Calibration\n"); 880 DPRINTF(ah->ah_sc, ATH_DBG_CALIBRATE, "Running PA Calibration\n");
881 881
882 /* PA CAL is not needed for high power solution */
883 if (ah->eep_ops->get_eeprom(ah, EEP_TXGAIN_TYPE) ==
884 AR5416_EEP_TXGAIN_HIGH_POWER)
885 return;
886
882 if (AR_SREV_9285_11(ah)) { 887 if (AR_SREV_9285_11(ah)) {
883 REG_WRITE(ah, AR9285_AN_TOP4, (AR9285_AN_TOP4_DEFAULT | 0x14)); 888 REG_WRITE(ah, AR9285_AN_TOP4, (AR9285_AN_TOP4_DEFAULT | 0x14));
884 udelay(10); 889 udelay(10);