Skip to content

Commit

Permalink
ath9k_hw: initialize regulatory->max_power_level in set_txpower for A…
Browse files Browse the repository at this point in the history
…R9003

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>
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Nov 15, 2010
1 parent edb40a2 commit 6b7b6cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 6b7b6cf

Please sign in to comment.