Commit ca8bfd94 authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville

ath5k: apply the synth voltage tweak only on AR5112 rev 2

Might fix some stability issues on newer chips
Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Acked-by: default avatarNick Kossifidis <mickflemm@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent b613c726
...@@ -970,17 +970,20 @@ static int ath5k_hw_rfregs_init(struct ath5k_hw *ah, ...@@ -970,17 +970,20 @@ static int ath5k_hw_rfregs_init(struct ath5k_hw *ah,
} }
/* Lower synth voltage on Rev 2 */ /* Lower synth voltage on Rev 2 */
ath5k_hw_rfb_op(ah, rf_regs, 2, if (ah->ah_radio == AR5K_RF5112 &&
AR5K_RF_HIGH_VC_CP, true); (ah->ah_radio_5ghz_revision & AR5K_SREV_REV) > 0) {
ath5k_hw_rfb_op(ah, rf_regs, 2,
AR5K_RF_HIGH_VC_CP, true);
ath5k_hw_rfb_op(ah, rf_regs, 2, ath5k_hw_rfb_op(ah, rf_regs, 2,
AR5K_RF_MID_VC_CP, true); AR5K_RF_MID_VC_CP, true);
ath5k_hw_rfb_op(ah, rf_regs, 2, ath5k_hw_rfb_op(ah, rf_regs, 2,
AR5K_RF_LOW_VC_CP, true); AR5K_RF_LOW_VC_CP, true);
ath5k_hw_rfb_op(ah, rf_regs, 2, ath5k_hw_rfb_op(ah, rf_regs, 2,
AR5K_RF_PUSH_UP, true); AR5K_RF_PUSH_UP, true);
}
/* Decrease power consumption on 5213+ BaseBand */ /* Decrease power consumption on 5213+ BaseBand */
if (ah->ah_phy_revision >= AR5K_SREV_PHY_5212A) { if (ah->ah_phy_revision >= AR5K_SREV_PHY_5212A) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment