diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-07-27 15:01:04 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-08 16:04:16 -0400 |
commit | 071bfefd6849e9acc12ca26f4f897cd907e81d1b (patch) | |
tree | b52b59ffbb65dd857161e248dcb8df47f5bf2471 /drivers/net/wireless/ath/ath9k/eeprom_def.c | |
parent | e832bf1032f8279d7df712faa9aaab6ba897c2c5 (diff) | |
download | blackbird-op-linux-071bfefd6849e9acc12ca26f4f897cd907e81d1b.tar.gz blackbird-op-linux-071bfefd6849e9acc12ca26f4f897cd907e81d1b.zip |
ath9k_hw: fix calculated runtime tx power limit
Use the previously calculated maximum of all rates instead of just the one
from the lowest rate of the selected PHY mode.
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/eeprom_def.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom_def.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_def.c b/drivers/net/wireless/ath/ath9k/eeprom_def.c index b665837635fc..85057e074bfc 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom_def.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_def.c @@ -1167,17 +1167,6 @@ static void ath9k_hw_def_set_txpower(struct ath_hw *ah, regulatory->max_power_level = ratesArray[i]; } - if (!test) { - i = rate6mb; - - if (IS_CHAN_HT40(chan)) - i = rateHt40_0; - else if (IS_CHAN_HT20(chan)) - i = rateHt20_0; - - regulatory->max_power_level = ratesArray[i]; - } - switch(ar5416_get_ntxchains(ah->txchainmask)) { case 1: break; |