diff options
| -rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c index c4182359bee4..92cfef225477 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | |||
| @@ -2133,6 +2133,7 @@ static void ath9k_hw_ar9300_set_txpower(struct ath_hw *ah, | |||
| 2133 | u8 twiceMaxRegulatoryPower, | 2133 | u8 twiceMaxRegulatoryPower, |
| 2134 | u8 powerLimit) | 2134 | u8 powerLimit) |
| 2135 | { | 2135 | { |
| 2136 | struct ath_regulatory *regulatory = ath9k_hw_regulatory(ah); | ||
| 2136 | struct ath_common *common = ath9k_hw_common(ah); | 2137 | struct ath_common *common = ath9k_hw_common(ah); |
| 2137 | u8 targetPowerValT2[ar9300RateSize]; | 2138 | u8 targetPowerValT2[ar9300RateSize]; |
| 2138 | unsigned int i = 0; | 2139 | unsigned int i = 0; |
| @@ -2180,6 +2181,7 @@ static void ath9k_hw_ar9300_set_txpower(struct ath_hw *ah, | |||
| 2180 | i = ALL_TARGET_HT20_0_8_16; /* ht20 */ | 2181 | i = ALL_TARGET_HT20_0_8_16; /* ht20 */ |
| 2181 | 2182 | ||
| 2182 | ah->txpower_limit = targetPowerValT2[i]; | 2183 | ah->txpower_limit = targetPowerValT2[i]; |
| 2184 | regulatory->max_power_level = ratesArray[i]; | ||
| 2183 | 2185 | ||
| 2184 | ar9003_hw_calibration_apply(ah, chan->channel); | 2186 | ar9003_hw_calibration_apply(ah, chan->channel); |
| 2185 | } | 2187 | } |
