Date:2011-07-01 06:04:54 (8 years 5 months ago)
Author:nbd
Commit:fa26f075386ffffbad7fdcde07c1eee8eee760a1
Message:ath5k: disable tx power gain correction probing for hardware that does not need or support it

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

Change Details

package/mac80211/patches/440-ath5k_calibrate_srev_checks.patch
1--- a/drivers/net/wireless/ath/ath5k/phy.c
2@@ -1604,11 +1604,13 @@ int ath5k_hw_phy_calibrate(struct ath5k_
3     int ret;
4
5     if (ah->ah_radio == AR5K_RF5110)
6- ret = ath5k_hw_rf5110_calibrate(ah, channel);
7- else {
8- ret = ath5k_hw_rf511x_iq_calibrate(ah);
9+ return ath5k_hw_rf5110_calibrate(ah, channel);
10+
11+ ret = ath5k_hw_rf511x_iq_calibrate(ah);
12+
13+ if (ah->ah_radio == AR5K_RF5112 &&
14+ (channel->hw_value & (CHANNEL_5GHZ | CHANNEL_OFDM)))
15         ath5k_hw_request_rfgain_probe(ah);
16- }
17
18     return ret;
19 }

Archive Download the corresponding diff file



interactive