diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2010-04-15 17:38:52 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-16 15:43:28 -0400 |
commit | e83a1134de299e6453c6d8bc99cf3af3972bb84a (patch) | |
tree | 7258d8104c43f867e2781c618252526de10931c9 /drivers/net/wireless/ath/ath9k/calib.c | |
parent | 4d001d18f2e738f3b53bfd1cd493987e3e61421a (diff) |
ath9k_hw: add a helper for the OLC tem compensation for AR9002
Open Loop Control temperature compensation changes between our
hardware so use a helper for it.
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.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c index 26bc3819bdde..156ae347c617 100644 --- a/drivers/net/wireless/ath/ath9k/calib.c +++ b/drivers/net/wireless/ath/ath9k/calib.c | |||
@@ -964,6 +964,12 @@ static void ar9002_hw_pa_cal(struct ath_hw *ah, bool is_reset) | |||
964 | } | 964 | } |
965 | } | 965 | } |
966 | 966 | ||
967 | static void ar9002_hw_olc_temp_compensation(struct ath_hw *ah) | ||
968 | { | ||
969 | if (OLC_FOR_AR9280_20_LATER || OLC_FOR_AR9287_10_LATER) | ||
970 | ath9k_olc_temp_compensation(ah); | ||
971 | } | ||
972 | |||
967 | bool ath9k_hw_calibrate(struct ath_hw *ah, struct ath9k_channel *chan, | 973 | bool ath9k_hw_calibrate(struct ath_hw *ah, struct ath9k_channel *chan, |
968 | u8 rxchainmask, bool longcal) | 974 | u8 rxchainmask, bool longcal) |
969 | { | 975 | { |
@@ -989,9 +995,7 @@ bool ath9k_hw_calibrate(struct ath_hw *ah, struct ath9k_channel *chan, | |||
989 | if (longcal) { | 995 | if (longcal) { |
990 | /* Do periodic PAOffset Cal */ | 996 | /* Do periodic PAOffset Cal */ |
991 | ar9002_hw_pa_cal(ah, false); | 997 | ar9002_hw_pa_cal(ah, false); |
992 | 998 | ar9002_hw_olc_temp_compensation(ah); | |
993 | if (OLC_FOR_AR9280_20_LATER || OLC_FOR_AR9287_10_LATER) | ||
994 | ath9k_olc_temp_compensation(ah); | ||
995 | 999 | ||
996 | /* Get the value from the previous NF cal and update history buffer */ | 1000 | /* Get the value from the previous NF cal and update history buffer */ |
997 | ath9k_hw_getnf(ah, chan); | 1001 | ath9k_hw_getnf(ah, chan); |