diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2013-08-19 11:04:01 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-08-22 14:30:29 -0400 |
commit | e083a42ef616b6987c024cccfec72cec75a1f1f5 (patch) | |
tree | 91a7e21dfd5971b4affef23e32091763dc0b6009 /drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | |
parent | fb5a2dcbbcf19f8ff7e5312b2340460bc03a4b89 (diff) | |
download | linux-stable-e083a42ef616b6987c024cccfec72cec75a1f1f5.tar.gz linux-stable-e083a42ef616b6987c024cccfec72cec75a1f1f5.tar.bz2 linux-stable-e083a42ef616b6987c024cccfec72cec75a1f1f5.zip |
ath9k: Add antenna diversity tweak for CUS198
This improves RX diversity and performance for AR9485.
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9003_eeprom.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c index abdc7ee87413..a6846abf4749 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c @@ -3825,6 +3825,11 @@ static void ar9003_hw_atten_apply(struct ath_hw *ah, struct ath9k_channel *chan) else value = ar9003_hw_atten_chain_get_margin(ah, i, chan); + if (ah->config.alt_mingainidx) + REG_RMW_FIELD(ah, AR_PHY_EXT_ATTEN_CTL_0, + AR_PHY_EXT_ATTEN_CTL_XATTEN1_MARGIN, + value); + REG_RMW_FIELD(ah, ext_atten_reg[i], AR_PHY_EXT_ATTEN_CTL_XATTEN1_MARGIN, value); |