Root/package/mac80211/patches/520-ath9k_ar9003_regulatory_power.patch

1--- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
2+++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
3@@ -2133,6 +2133,7 @@ static void ath9k_hw_ar9300_set_txpower(
4                     u8 twiceMaxRegulatoryPower,
5                     u8 powerLimit)
6 {
7+ struct ath_regulatory *regulatory = ath9k_hw_regulatory(ah);
8     struct ath_common *common = ath9k_hw_common(ah);
9     u8 targetPowerValT2[ar9300RateSize];
10     unsigned int i = 0;
11@@ -2180,6 +2181,7 @@ static void ath9k_hw_ar9300_set_txpower(
12         i = ALL_TARGET_HT20_0_8_16; /* ht20 */
13 
14     ah->txpower_limit = targetPowerValT2[i];
15+ regulatory->max_power_level = ratesArray[i];
16 
17     ar9003_hw_calibration_apply(ah, chan->channel);
18 }
19

Archive Download this file



interactive