ath9k_hw: fix calculated runtime tx power limit
authorFelix Fietkau <nbd@openwrt.org>
Wed, 27 Jul 2011 13:01:04 +0000 (15:01 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 8 Aug 2011 20:04:16 +0000 (16:04 -0400)
commit071bfefd6849e9acc12ca26f4f897cd907e81d1b
treeb52b59ffbb65dd857161e248dcb8df47f5bf2471
parente832bf1032f8279d7df712faa9aaab6ba897c2c5
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>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
drivers/net/wireless/ath/ath9k/eeprom_4k.c
drivers/net/wireless/ath/ath9k/eeprom_9287.c
drivers/net/wireless/ath/ath9k/eeprom_def.c