diff options
author | Vasanthakumar Thiagarajan <vasanth@atheros.com> | 2009-08-26 11:38:48 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-28 14:40:51 -0400 |
commit | 81fa16fbe06cb3a4d29cc5a6f925132554521c72 (patch) | |
tree | 45c3484d701ba1e9fd1662ba87d078f623a686cd /drivers/net/wireless | |
parent | 22f25d0d5e146112d4ec464564ebb49a5b8a547b (diff) |
ath9k: Remove hw capability bit meant for btcoex
We don't need a hw cap bit for btcoex anymore as btcoex scheme type
is enough to do this.
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 8 |
3 files changed, 3 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 7b4bc8b74bb8..c80be8c78e8b 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -3666,7 +3666,6 @@ void ath9k_hw_fill_cap_info(struct ath_hw *ah) | |||
3666 | ah->eep_ops->get_num_ant_config(ah, ATH9K_HAL_FREQ_BAND_2GHZ); | 3666 | ah->eep_ops->get_num_ant_config(ah, ATH9K_HAL_FREQ_BAND_2GHZ); |
3667 | 3667 | ||
3668 | if (AR_SREV_9280_10_OR_LATER(ah) && btcoex_enable) { | 3668 | if (AR_SREV_9280_10_OR_LATER(ah) && btcoex_enable) { |
3669 | pCap->hw_caps |= ATH9K_HW_CAP_BT_COEX; | ||
3670 | btcoex_info->btactive_gpio = ATH_BTACTIVE_GPIO; | 3669 | btcoex_info->btactive_gpio = ATH_BTACTIVE_GPIO; |
3671 | btcoex_info->wlanactive_gpio = ATH_WLANACTIVE_GPIO; | 3670 | btcoex_info->wlanactive_gpio = ATH_WLANACTIVE_GPIO; |
3672 | 3671 | ||
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 259936c90467..de10de8370d2 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -151,7 +151,6 @@ enum ath9k_hw_caps { | |||
151 | ATH9K_HW_CAP_ENHANCEDPM = BIT(14), | 151 | ATH9K_HW_CAP_ENHANCEDPM = BIT(14), |
152 | ATH9K_HW_CAP_AUTOSLEEP = BIT(15), | 152 | ATH9K_HW_CAP_AUTOSLEEP = BIT(15), |
153 | ATH9K_HW_CAP_4KB_SPLITTRANS = BIT(16), | 153 | ATH9K_HW_CAP_4KB_SPLITTRANS = BIT(16), |
154 | ATH9K_HW_CAP_BT_COEX = BIT(17) | ||
155 | }; | 154 | }; |
156 | 155 | ||
157 | enum ath9k_capability_type { | 156 | enum ath9k_capability_type { |
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 8a2f000274b5..215c67251f79 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -440,7 +440,7 @@ static void ath_start_ani(struct ath_softc *sc) | |||
440 | void ath_update_chainmask(struct ath_softc *sc, int is_ht) | 440 | void ath_update_chainmask(struct ath_softc *sc, int is_ht) |
441 | { | 441 | { |
442 | if ((sc->sc_flags & SC_OP_SCANNING) || is_ht || | 442 | if ((sc->sc_flags & SC_OP_SCANNING) || is_ht || |
443 | (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_BT_COEX)) { | 443 | (sc->btcoex_info.btcoex_scheme != ATH_BTCOEX_CFG_NONE)) { |
444 | sc->tx_chainmask = sc->sc_ah->caps.tx_chainmask; | 444 | sc->tx_chainmask = sc->sc_ah->caps.tx_chainmask; |
445 | sc->rx_chainmask = sc->sc_ah->caps.rx_chainmask; | 445 | sc->rx_chainmask = sc->sc_ah->caps.rx_chainmask; |
446 | } else { | 446 | } else { |
@@ -1509,8 +1509,7 @@ static int ath_init_softc(u16 devid, struct ath_softc *sc) | |||
1509 | ARRAY_SIZE(ath9k_5ghz_chantable); | 1509 | ARRAY_SIZE(ath9k_5ghz_chantable); |
1510 | } | 1510 | } |
1511 | 1511 | ||
1512 | if ((ah->caps.hw_caps & ATH9K_HW_CAP_BT_COEX) && | 1512 | if (sc->btcoex_info.btcoex_scheme == ATH_BTCOEX_CFG_2WIRE) |
1513 | (sc->btcoex_info.btcoex_scheme == ATH_BTCOEX_CFG_2WIRE)) | ||
1514 | ath9k_hw_btcoex_init(ah); | 1513 | ath9k_hw_btcoex_init(ah); |
1515 | 1514 | ||
1516 | return 0; | 1515 | return 0; |
@@ -1993,8 +1992,7 @@ static int ath9k_start(struct ieee80211_hw *hw) | |||
1993 | 1992 | ||
1994 | ieee80211_queue_delayed_work(sc->hw, &sc->tx_complete_work, 0); | 1993 | ieee80211_queue_delayed_work(sc->hw, &sc->tx_complete_work, 0); |
1995 | 1994 | ||
1996 | if ((sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_BT_COEX) && | 1995 | if ((sc->btcoex_info.btcoex_scheme == ATH_BTCOEX_CFG_2WIRE) && |
1997 | (sc->btcoex_info.btcoex_scheme == ATH_BTCOEX_CFG_2WIRE) && | ||
1998 | !(sc->sc_flags & SC_OP_BTCOEX_ENABLED)) | 1996 | !(sc->sc_flags & SC_OP_BTCOEX_ENABLED)) |
1999 | ath9k_hw_btcoex_enable(sc->sc_ah); | 1997 | ath9k_hw_btcoex_enable(sc->sc_ah); |
2000 | 1998 | ||