b99140398a380a4256412883b901217f9ef5d357
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 563-ath9k-fix-antenna-diversity-configuration-for-non-AR.patch
1 --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c
2 +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
3 @@ -1214,8 +1214,14 @@ static void ar9003_hw_antdiv_comb_conf_g
4 AR_PHY_9485_ANT_DIV_ALT_LNACONF_S;
5 antconf->fast_div_bias = (regval & AR_PHY_9485_ANT_FAST_DIV_BIAS) >>
6 AR_PHY_9485_ANT_FAST_DIV_BIAS_S;
7 - antconf->lna1_lna2_delta = -9;
8 - antconf->div_group = 2;
9 +
10 + if (AR_SREV_9485(ah)) {
11 + antconf->lna1_lna2_delta = -9;
12 + antconf->div_group = 2;
13 + } else {
14 + antconf->lna1_lna2_delta = -3;
15 + antconf->div_group = 0;
16 + }
17 }
18
19 static void ar9003_hw_antdiv_comb_conf_set(struct ath_hw *ah,