From: Alex Hacker Date: Wed, 3 Aug 2011 11:41:54 +0000 (+0600) Subject: ath9k_hw: use register name in place of magic value X-Git-Tag: MMI-PSA29.97-13-9~18194^2~254^2~336 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8d7763b4332b80028522f8a0d47e6339a13d1fdc;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ath9k_hw: use register name in place of magic value Signed-off-by: Alex Hacker Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c index b5aa834b4ff4..908463915b99 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c @@ -4188,7 +4188,7 @@ static int ar9003_hw_tx_power_regwrite(struct ath_hw *ah, u8 * pPwrArray) /* Write the power for duplicated frames - HT40 */ /* dup40_cck (LSB), dup40_ofdm, ext20_cck, ext20_ofdm (MSB) */ - REG_WRITE(ah, 0xa3e0, + REG_WRITE(ah, AR_PHY_POWER_TX_RATE(8), POW_SM(pPwrArray[ALL_TARGET_LEGACY_6_24], 24) | POW_SM(pPwrArray[ALL_TARGET_LEGACY_1L_5L], 16) | POW_SM(pPwrArray[ALL_TARGET_LEGACY_6_24], 8) |