diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-10-20 00:09:44 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-15 18:23:12 (GMT) |
commit | 6b7b6cf553f881d45bb37a73f5db956afb290a08 (patch) | |
tree | c692718c09047aa9b43b046c6dbf492fcd95249b /drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | |
parent | edb40a23c8dc5b5be219bf4561074b6233bba65f (diff) | |
download | linux-fsl-qoriq-6b7b6cf553f881d45bb37a73f5db956afb290a08.tar.xz |
ath9k_hw: initialize regulatory->max_power_level in set_txpower for AR9003
The same is done for the older chip families as well.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9003_eeprom.c')
-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 c418235..92cfef2 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, u8 twiceMaxRegulatoryPower, u8 powerLimit) { + struct ath_regulatory *regulatory = ath9k_hw_regulatory(ah); struct ath_common *common = ath9k_hw_common(ah); u8 targetPowerValT2[ar9300RateSize]; unsigned int i = 0; @@ -2180,6 +2181,7 @@ static void ath9k_hw_ar9300_set_txpower(struct ath_hw *ah, i = ALL_TARGET_HT20_0_8_16; /* ht20 */ ah->txpower_limit = targetPowerValT2[i]; + regulatory->max_power_level = ratesArray[i]; ar9003_hw_calibration_apply(ah, chan->channel); } |