diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2013-08-04 04:52:00 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-08-05 14:52:44 -0400 |
commit | 7bdea96a1bbae75e7922584e3ae37fb9ad6cb79a (patch) | |
tree | c768dedfa37a17a35ff0de5f15384ff1a20d418c /drivers/net/wireless/ath/ath9k | |
parent | d7150908248bc76eff48c16045802c7f0b1cfd74 (diff) |
ath9k: Remove "shared_chain_lnadiv"
This variable is redundant since we can use
common->bt_ant_diversity to determine if diversity
has to be enabled/disabled.
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_phy.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 1 |
4 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c index a98e6a3dd8a1..c2f1f18e364b 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | |||
@@ -3561,6 +3561,7 @@ static u16 ar9003_hw_ant_ctrl_chain_get(struct ath_hw *ah, int chain, | |||
3561 | 3561 | ||
3562 | static void ar9003_hw_ant_ctrl_apply(struct ath_hw *ah, bool is2ghz) | 3562 | static void ar9003_hw_ant_ctrl_apply(struct ath_hw *ah, bool is2ghz) |
3563 | { | 3563 | { |
3564 | struct ath_common *common = ath9k_hw_common(ah); | ||
3564 | struct ath9k_hw_capabilities *pCap = &ah->caps; | 3565 | struct ath9k_hw_capabilities *pCap = &ah->caps; |
3565 | int chain; | 3566 | int chain; |
3566 | u32 regval, value, gpio; | 3567 | u32 regval, value, gpio; |
@@ -3646,7 +3647,7 @@ static void ar9003_hw_ant_ctrl_apply(struct ath_hw *ah, bool is2ghz) | |||
3646 | regval |= ((value >> 6) & 0x1) << AR_PHY_ANT_DIV_LNADIV_S; | 3647 | regval |= ((value >> 6) & 0x1) << AR_PHY_ANT_DIV_LNADIV_S; |
3647 | 3648 | ||
3648 | if (AR_SREV_9565(ah)) { | 3649 | if (AR_SREV_9565(ah)) { |
3649 | if (ah->shared_chain_lnadiv) { | 3650 | if (common->bt_ant_diversity) { |
3650 | regval |= (1 << AR_PHY_ANT_SW_RX_PROT_S); | 3651 | regval |= (1 << AR_PHY_ANT_SW_RX_PROT_S); |
3651 | } else { | 3652 | } else { |
3652 | regval &= ~(1 << AR_PHY_ANT_DIV_LNADIV_S); | 3653 | regval &= ~(1 << AR_PHY_ANT_DIV_LNADIV_S); |
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c index f9fe9c81268f..55021f1a9c35 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c | |||
@@ -1420,7 +1420,6 @@ static void ar9003_hw_set_bt_ant_diversity(struct ath_hw *ah, bool enable) | |||
1420 | if (!AR_SREV_9565(ah)) | 1420 | if (!AR_SREV_9565(ah)) |
1421 | return; | 1421 | return; |
1422 | 1422 | ||
1423 | ah->shared_chain_lnadiv = enable; | ||
1424 | ant_div_ctl1 = ah->eep_ops->get_eeprom(ah, EEP_ANT_DIV_CTL1); | 1423 | ant_div_ctl1 = ah->eep_ops->get_eeprom(ah, EEP_ANT_DIV_CTL1); |
1425 | 1424 | ||
1426 | regval = REG_READ(ah, AR_PHY_MC_GAIN_CTRL); | 1425 | regval = REG_READ(ah, AR_PHY_MC_GAIN_CTRL); |
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 8bd602cba7f1..151443bddbde 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -2056,7 +2056,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan, | |||
2056 | 2056 | ||
2057 | ath9k_hw_apply_gpio_override(ah); | 2057 | ath9k_hw_apply_gpio_override(ah); |
2058 | 2058 | ||
2059 | if (AR_SREV_9565(ah) && ah->shared_chain_lnadiv) | 2059 | if (AR_SREV_9565(ah) && common->bt_ant_diversity) |
2060 | REG_SET_BIT(ah, AR_BTCOEX_WL_LNADIV, AR_BTCOEX_WL_LNADIV_FORCE_ON); | 2060 | REG_SET_BIT(ah, AR_BTCOEX_WL_LNADIV, AR_BTCOEX_WL_LNADIV_FORCE_ON); |
2061 | 2061 | ||
2062 | return 0; | 2062 | return 0; |
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index c037718cf6e3..9dc677399631 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -767,7 +767,6 @@ struct ath_hw { | |||
767 | bool aspm_enabled; | 767 | bool aspm_enabled; |
768 | bool is_monitoring; | 768 | bool is_monitoring; |
769 | bool need_an_top2_fixup; | 769 | bool need_an_top2_fixup; |
770 | bool shared_chain_lnadiv; | ||
771 | u16 tx_trig_level; | 770 | u16 tx_trig_level; |
772 | 771 | ||
773 | u32 nf_regs[6]; | 772 | u32 nf_regs[6]; |