mac80211: backport atomic64_t support for kernels that don't support it
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 441-ath5k_synth_voltage_srev_check.patch
1 --- a/drivers/net/wireless/ath/ath5k/phy.c
2 +++ b/drivers/net/wireless/ath/ath5k/phy.c
3 @@ -970,17 +970,20 @@ static int ath5k_hw_rfregs_init(struct a
4 }
5
6 /* Lower synth voltage on Rev 2 */
7 - ath5k_hw_rfb_op(ah, rf_regs, 2,
8 - AR5K_RF_HIGH_VC_CP, true);
9 + if (ah->ah_radio == AR5K_RF5112 &&
10 + (ah->ah_radio_5ghz_revision & AR5K_SREV_REV) > 0) {
11 + ath5k_hw_rfb_op(ah, rf_regs, 2,
12 + AR5K_RF_HIGH_VC_CP, true);
13
14 - ath5k_hw_rfb_op(ah, rf_regs, 2,
15 - AR5K_RF_MID_VC_CP, true);
16 + ath5k_hw_rfb_op(ah, rf_regs, 2,
17 + AR5K_RF_MID_VC_CP, true);
18
19 - ath5k_hw_rfb_op(ah, rf_regs, 2,
20 - AR5K_RF_LOW_VC_CP, true);
21 + ath5k_hw_rfb_op(ah, rf_regs, 2,
22 + AR5K_RF_LOW_VC_CP, true);
23
24 - ath5k_hw_rfb_op(ah, rf_regs, 2,
25 - AR5K_RF_PUSH_UP, true);
26 + ath5k_hw_rfb_op(ah, rf_regs, 2,
27 + AR5K_RF_PUSH_UP, true);
28 + }
29
30 /* Decrease power consumption on 5213+ BaseBand */
31 if (ah->ah_phy_revision >= AR5K_SREV_PHY_5212A) {