diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-07-11 21:01:59 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-13 14:49:37 -0400 |
commit | ca8bfd94bbe5bd89ff6a4bbf5a050251950cce25 (patch) | |
tree | 6c7b706a3228634a05fd9930af7126b54d61f14f | |
parent | b613c7262dda30563bb1759573e39392a81524e6 (diff) |
ath5k: apply the synth voltage tweak only on AR5112 rev 2
Might fix some stability issues on newer chips
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath5k/phy.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c index 3f19e3122036..acf73a042118 100644 --- a/drivers/net/wireless/ath/ath5k/phy.c +++ b/drivers/net/wireless/ath/ath5k/phy.c | |||
@@ -970,17 +970,20 @@ static int ath5k_hw_rfregs_init(struct ath5k_hw *ah, | |||
970 | } | 970 | } |
971 | 971 | ||
972 | /* Lower synth voltage on Rev 2 */ | 972 | /* Lower synth voltage on Rev 2 */ |
973 | ath5k_hw_rfb_op(ah, rf_regs, 2, | 973 | if (ah->ah_radio == AR5K_RF5112 && |
974 | AR5K_RF_HIGH_VC_CP, true); | 974 | (ah->ah_radio_5ghz_revision & AR5K_SREV_REV) > 0) { |
975 | ath5k_hw_rfb_op(ah, rf_regs, 2, | ||
976 | AR5K_RF_HIGH_VC_CP, true); | ||
975 | 977 | ||
976 | ath5k_hw_rfb_op(ah, rf_regs, 2, | 978 | ath5k_hw_rfb_op(ah, rf_regs, 2, |
977 | AR5K_RF_MID_VC_CP, true); | 979 | AR5K_RF_MID_VC_CP, true); |
978 | 980 | ||
979 | ath5k_hw_rfb_op(ah, rf_regs, 2, | 981 | ath5k_hw_rfb_op(ah, rf_regs, 2, |
980 | AR5K_RF_LOW_VC_CP, true); | 982 | AR5K_RF_LOW_VC_CP, true); |
981 | 983 | ||
982 | ath5k_hw_rfb_op(ah, rf_regs, 2, | 984 | ath5k_hw_rfb_op(ah, rf_regs, 2, |
983 | AR5K_RF_PUSH_UP, true); | 985 | AR5K_RF_PUSH_UP, true); |
986 | } | ||
984 | 987 | ||
985 | /* Decrease power consumption on 5213+ BaseBand */ | 988 | /* Decrease power consumption on 5213+ BaseBand */ |
986 | if (ah->ah_phy_revision >= AR5K_SREV_PHY_5212A) { | 989 | if (ah->ah_phy_revision >= AR5K_SREV_PHY_5212A) { |