Skip to contentSkip to conversation

ath9k: Set force WLAN LNA diversity on bit for AR9565

PATCH Rajkumar Manoharan 1 participant 1 message Oct 29, 2012

lore
Share & tools
lore
#0 lore raw
Quoted 21 lines

When LNA diversity shared chain is enabled set force WLAN LNA diversity on bit and enable fast diversity m2flag for AR9565.

---
 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +4 -0
index d2e44c3..105390a 100644
@@ -3643,9 +3643,20 @@ static void ar9003_hw_ant_ctrl_apply(struct ath_hw *ah, bool is2ghz)
 			    (value & AR_EEP_ANT_DIV_ENABLE)) {
 				regval |= AR_ANT_DIV_ENABLE;
 				regval |= (1 << AR_PHY_ANT_SW_RX_PROT_S);
+				if (is2ghz) {
+					REG_SET_BIT(ah,
+					    AR_PHY_RESTART,
+					    AR_PHY_RESTART_ENABLE_DIV_M2FLAG);

drivers/net/wireless/ath/ath9k/ar9003_eeprom.c static void ar9003_hw_ant_ctrl_apply(struct ath_hw *ah, bool is2ghz) · line 3659

Quoted 10 lines
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +7 -0
+				}
+				REG_SET_BIT(ah,
+					    AR_BTCOEX_WL_LNADIV,
+					    AR_BTCOEX_WL_LNADIV_FORCE_ON);
 			} else {
 				regval &= ~AR_ANT_DIV_ENABLE;
 				regval &= ~(1 << AR_PHY_ANT_SW_RX_PROT_S);
+				REG_CLR_BIT(ah,
+					    AR_BTCOEX_WL_LNADIV,
+					    AR_BTCOEX_WL_LNADIV_FORCE_ON);

NACK. These bits are already taken care in
ar9003_hw_antctrl_shared_chain_lnadiv.

-Rajkumar