Date:2011-07-01 07:10:47 (8 years 5 months ago)
Author:nbd
Commit:ff655eabc3855b67b41cadae3fa7cd0772033d8b
Message:ath5k: add a missing srev checks for code that lowers the synth voltage - might fix some stability issues

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27325 3c298f89-4303-0410-b956-a3cf2f4a3e73
Files: package/mac80211/patches/441-ath5k_synth_voltage_srev_check.patch (1 diff)

Change Details

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

Archive Download the corresponding diff file



interactive