aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/calib.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/calib.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/calib.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c
index dae200c5fe0d..b44b3056c2fe 100644
--- a/drivers/net/wireless/ath/ath9k/calib.c
+++ b/drivers/net/wireless/ath/ath9k/calib.c
@@ -730,14 +730,6 @@ static void ar9280_hw_olc_temp_compensation(struct ath_hw *ah)
730 } 730 }
731} 731}
732 732
733static void ath9k_olc_temp_compensation(struct ath_hw *ah)
734{
735 if (OLC_FOR_AR9287_10_LATER)
736 ar9287_hw_olc_temp_compensation(ah);
737 else
738 ar9280_hw_olc_temp_compensation(ah);
739}
740
741static void ath9k_hw_9271_pa_cal(struct ath_hw *ah, bool is_reset) 733static void ath9k_hw_9271_pa_cal(struct ath_hw *ah, bool is_reset)
742{ 734{
743 u32 regVal; 735 u32 regVal;
@@ -969,8 +961,10 @@ static void ar9002_hw_pa_cal(struct ath_hw *ah, bool is_reset)
969 961
970static void ar9002_hw_olc_temp_compensation(struct ath_hw *ah) 962static void ar9002_hw_olc_temp_compensation(struct ath_hw *ah)
971{ 963{
972 if (OLC_FOR_AR9280_20_LATER || OLC_FOR_AR9287_10_LATER) 964 if (OLC_FOR_AR9287_10_LATER)
973 ath9k_olc_temp_compensation(ah); 965 ar9287_hw_olc_temp_compensation(ah);
966 else if (OLC_FOR_AR9280_20_LATER)
967 ar9280_hw_olc_temp_compensation(ah);
974} 968}
975 969
976bool ath9k_hw_calibrate(struct ath_hw *ah, struct ath9k_channel *chan, 970bool ath9k_hw_calibrate(struct ath_hw *ah, struct ath9k_channel *chan,