aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9003_eeprom.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9003_eeprom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
index a93bd63ad23b..4ba6f52943a8 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
@@ -4779,7 +4779,7 @@ static void ar9003_hw_set_power_per_rate_table(struct ath_hw *ah,
4779{ 4779{
4780 struct ath_common *common = ath9k_hw_common(ah); 4780 struct ath_common *common = ath9k_hw_common(ah);
4781 struct ar9300_eeprom *pEepData = &ah->eeprom.ar9300_eep; 4781 struct ar9300_eeprom *pEepData = &ah->eeprom.ar9300_eep;
4782 u16 twiceMaxEdgePower = MAX_RATE_POWER; 4782 u16 twiceMaxEdgePower;
4783 int i; 4783 int i;
4784 u16 scaledPower = 0, minCtlPower; 4784 u16 scaledPower = 0, minCtlPower;
4785 static const u16 ctlModesFor11a[] = { 4785 static const u16 ctlModesFor11a[] = {
@@ -4880,6 +4880,7 @@ static void ar9003_hw_set_power_per_rate_table(struct ath_hw *ah,
4880 ctlNum = AR9300_NUM_CTLS_5G; 4880 ctlNum = AR9300_NUM_CTLS_5G;
4881 } 4881 }
4882 4882
4883 twiceMaxEdgePower = MAX_RATE_POWER;
4883 for (i = 0; (i < ctlNum) && ctlIndex[i]; i++) { 4884 for (i = 0; (i < ctlNum) && ctlIndex[i]; i++) {
4884 ath_dbg(common, ATH_DBG_REGULATORY, 4885 ath_dbg(common, ATH_DBG_REGULATORY,
4885 "LOOP-Ctlidx %d: cfgCtl 0x%2.2x pCtlMode 0x%2.2x ctlIndex 0x%2.2x chan %d\n", 4886 "LOOP-Ctlidx %d: cfgCtl 0x%2.2x pCtlMode 0x%2.2x ctlIndex 0x%2.2x chan %d\n",