> Restore main to LNA1 and ALT to LNA2 for AR9565 only > when shared LNA diversity is not enabled. > > Signed-off-by: Bala Shanmugam <bkamatch@xxxxxxxxxxxxxxxx> > --- > drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c > index 105390a..672530c 100644 > --- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c > +++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c > @@ -3674,7 +3674,10 @@ static void ar9003_hw_ant_ctrl_apply(struct ath_hw *ah, bool is2ghz) > regval &= ~AR_FAST_DIV_ENABLE; > REG_WRITE(ah, AR_PHY_CCK_DETECT, regval); > > - if (pCap->hw_caps & ATH9K_HW_CAP_ANT_DIV_COMB) { > + if ((AR_SREV_9485_11(ah) && > + pCap->hw_caps & ATH9K_HW_CAP_ANT_DIV_COMB) || > + (AR_SREV_9565(ah) && > + !ah->shared_chain_lnadiv)) { > regval = REG_READ(ah, AR_PHY_MC_GAIN_CTRL); > /* > * clear bits 25-30 main_lnaconf, alt_lnaconf, This is not needed. Its already taken care, when lna is disabled manually, we clear everything properly via ath_ant_comb_update() -Rajkumar -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html