Use the correct antenna configuration variable here. "diversity" just
controls whether it's on or off. Found by: clang
This commit is contained in:
parent
0200f963e7
commit
0639c54a67
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=248182
@ -50,7 +50,7 @@ ar9285BTCoexAntennaDiversity(struct ath_hal *ah)
|
||||
if ((ahp->ah_btCoexFlag & HAL_BT_COEX_FLAG_ANT_DIV_ALLOW) ||
|
||||
(AH5212(ah)->ah_diversity != HAL_ANT_VARIABLE)) {
|
||||
if ((ahp->ah_btCoexFlag & HAL_BT_COEX_FLAG_ANT_DIV_ENABLE) &&
|
||||
(AH5212(ah)->ah_diversity == HAL_ANT_VARIABLE)) {
|
||||
(AH5212(ah)->ah_antControl == HAL_ANT_VARIABLE)) {
|
||||
/* Enable antenna diversity */
|
||||
ant_div_control1 = HAL_BT_COEX_ANTDIV_CONTROL1_ENABLE;
|
||||
ant_div_control2 = HAL_BT_COEX_ANTDIV_CONTROL2_ENABLE;
|
||||
@ -63,7 +63,7 @@ ar9285BTCoexAntennaDiversity(struct ath_hal *ah)
|
||||
OS_REG_WRITE(ah, AR_PHY_SWITCH_COM,
|
||||
HAL_BT_COEX_ANT_DIV_SWITCH_COM);
|
||||
OS_REG_RMW(ah, AR_PHY_SWITCH_CHAIN_0, 0, 0xf0000000);
|
||||
} else if (AH5212(ah)->ah_diversity == HAL_ANT_FIXED_B) {
|
||||
} else if (AH5212(ah)->ah_antControl == HAL_ANT_FIXED_B) {
|
||||
/* Disable antenna diversity. Use antenna B(LNA2) only. */
|
||||
ant_div_control1 = HAL_BT_COEX_ANTDIV_CONTROL1_FIXED_B;
|
||||
ant_div_control2 = HAL_BT_COEX_ANTDIV_CONTROL2_FIXED_B;
|
||||
|
Loading…
Reference in New Issue
Block a user