ramips: rt305x: add support for the Asus RT-G32 B1 board
[openwrt.git] / package / mac80211 / patches / 440-ath5k_calibrate_srev_checks.patch
1 --- a/drivers/net/wireless/ath/ath5k/phy.c
2 +++ b/drivers/net/wireless/ath/ath5k/phy.c
3 @@ -1604,11 +1604,13 @@ int ath5k_hw_phy_calibrate(struct ath5k_
4 int ret;
5
6 if (ah->ah_radio == AR5K_RF5110)
7 - ret = ath5k_hw_rf5110_calibrate(ah, channel);
8 - else {
9 - ret = ath5k_hw_rf511x_iq_calibrate(ah);
10 + return ath5k_hw_rf5110_calibrate(ah, channel);
11 +
12 + ret = ath5k_hw_rf511x_iq_calibrate(ah);
13 +
14 + if (ah->ah_radio == AR5K_RF5112 &&
15 + (channel->hw_value & (CHANNEL_5GHZ | CHANNEL_OFDM)))
16 ath5k_hw_request_rfgain_probe(ah);
17 - }
18
19 return ret;
20 }
This page took 0.045719 seconds and 5 git commands to generate.