diff options
author | Mohammed Shafi Shajakhan <mshajakhan@atheros.com> | 2011-05-13 11:00:56 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-16 14:10:46 -0400 |
commit | 8afbcc8bfb549a522298fa4a31ee5155c2b5f7a0 (patch) | |
tree | 31161e2d3b6e6e531d5fd9c070e43c17c2ebfead /drivers/net/wireless/ath/ath9k/ar9003_phy.c | |
parent | 6bcbc062c23ac769cb775f3d2cf209db9d1a96fe (diff) |
ath9k_hw: define antenna diversity group
AR9285 belongs to diversity group 0 and AR9485 belongs to diversity
group 2. Based on the diversity group we configure certain antenna
diversity paramaters such as lna1_lna2_delta and fast diversity
bias values. For AR9485 we have some gain table parameter which
selects the gain table 0/1 for main and alternate antenna
Cc: Gabriel Tseng <Gabriel.Tseng@Atheros.com>
Cc: Senthilkumar Balasubramanian <Senthilkumar.Balasubramanian@Atheros.com>
Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9003_phy.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_phy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c index d2a5d2737cd..25f3c2fdf2b 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c | |||
@@ -1196,6 +1196,8 @@ static void ar9003_hw_antdiv_comb_conf_get(struct ath_hw *ah, | |||
1196 | AR_PHY_9485_ANT_DIV_ALT_LNACONF_S; | 1196 | AR_PHY_9485_ANT_DIV_ALT_LNACONF_S; |
1197 | antconf->fast_div_bias = (regval & AR_PHY_9485_ANT_FAST_DIV_BIAS) >> | 1197 | antconf->fast_div_bias = (regval & AR_PHY_9485_ANT_FAST_DIV_BIAS) >> |
1198 | AR_PHY_9485_ANT_FAST_DIV_BIAS_S; | 1198 | AR_PHY_9485_ANT_FAST_DIV_BIAS_S; |
1199 | antconf->lna1_lna2_delta = -9; | ||
1200 | antconf->div_group = 2; | ||
1199 | } | 1201 | } |
1200 | 1202 | ||
1201 | static void ar9003_hw_antdiv_comb_conf_set(struct ath_hw *ah, | 1203 | static void ar9003_hw_antdiv_comb_conf_set(struct ath_hw *ah, |