summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/eeprom.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-04-16 22:22:49 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-04-17 14:57:12 -0400
commit6010e72cdf3cb614278812cb00ecff2d1aee03dc (patch)
tree9410632d52043a0e54dfa9d3f8081c91be16c936 /drivers/net/wireless/ath/ath9k/eeprom.c
parent1e66eda1d40c9ce3ff38782da066a14e1b88ac50 (diff)
ath9k: merge power correction constants
The existing constants are used for reduction/increase tx power level on devices with 2x2 and 3x3 chainmask. Both reduction and increase must use the same value, so it makes no sense to use separate constants for them. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/eeprom.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/eeprom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom.c b/drivers/net/wireless/ath/ath9k/eeprom.c
index 6a64dec486d0..9457825c2c7c 100644
--- a/drivers/net/wireless/ath/ath9k/eeprom.c
+++ b/drivers/net/wireless/ath/ath9k/eeprom.c
@@ -303,10 +303,10 @@ u16 ath9k_hw_get_scaled_power(struct ath_hw *ah, u16 power_limit,
case 1:
break;
case 2:
- reduction += REDUCE_SCALED_POWER_BY_TWO_CHAIN;
+ reduction += POWER_CORRECTION_FOR_TWO_CHAIN;
break;
case 3:
- reduction += REDUCE_SCALED_POWER_BY_THREE_CHAIN;
+ reduction += POWER_CORRECTION_FOR_THREE_CHAIN;
break;
}
@@ -327,10 +327,10 @@ void ath9k_hw_update_regulatory_maxpower(struct ath_hw *ah)
case 1:
break;
case 2:
- regulatory->max_power_level += INCREASE_MAXPOW_BY_TWO_CHAIN;
+ regulatory->max_power_level += POWER_CORRECTION_FOR_TWO_CHAIN;
break;
case 3:
- regulatory->max_power_level += INCREASE_MAXPOW_BY_THREE_CHAIN;
+ regulatory->max_power_level += POWER_CORRECTION_FOR_THREE_CHAIN;
break;
default:
ath_dbg(common, EEPROM, "Invalid chainmask configuration\n");