diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-09-09 17:34:22 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:21 -0400 |
commit | 46289e1e5f2155ba1502b079e786e91755919823 (patch) | |
tree | 46a8dbdac8293281e2847c67f51bd37ab7368b8f | |
parent | 05a0b3c9200f4677097937efe634204044c4b4dc (diff) |
ath9k: rename btcoex_scheme to just scheme
btcoex_scheme is already part of a btcoex struct, its implied
this is btcoex related.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/btcoex.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/btcoex.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 14 |
4 files changed, 13 insertions, 13 deletions
diff --git a/drivers/net/wireless/ath/ath9k/btcoex.c b/drivers/net/wireless/ath/ath9k/btcoex.c index ab19072493cb..aa0ec2c2f326 100644 --- a/drivers/net/wireless/ath/ath9k/btcoex.c +++ b/drivers/net/wireless/ath/ath9k/btcoex.c | |||
@@ -147,7 +147,7 @@ void ath9k_hw_btcoex_enable(struct ath_hw *ah) | |||
147 | { | 147 | { |
148 | struct ath_btcoex_info *btcoex_info = &ah->btcoex_info; | 148 | struct ath_btcoex_info *btcoex_info = &ah->btcoex_info; |
149 | 149 | ||
150 | switch (btcoex_info->btcoex_scheme) { | 150 | switch (btcoex_info->scheme) { |
151 | case ATH_BTCOEX_CFG_NONE: | 151 | case ATH_BTCOEX_CFG_NONE: |
152 | break; | 152 | break; |
153 | case ATH_BTCOEX_CFG_2WIRE: | 153 | case ATH_BTCOEX_CFG_2WIRE: |
@@ -174,7 +174,7 @@ void ath9k_hw_btcoex_disable(struct ath_hw *ah) | |||
174 | ath9k_hw_cfg_output(ah, btcoex_info->wlanactive_gpio, | 174 | ath9k_hw_cfg_output(ah, btcoex_info->wlanactive_gpio, |
175 | AR_GPIO_OUTPUT_MUX_AS_OUTPUT); | 175 | AR_GPIO_OUTPUT_MUX_AS_OUTPUT); |
176 | 176 | ||
177 | if (btcoex_info->btcoex_scheme == ATH_BTCOEX_CFG_3WIRE) { | 177 | if (btcoex_info->scheme == ATH_BTCOEX_CFG_3WIRE) { |
178 | REG_WRITE(ah, AR_BT_COEX_MODE, AR_BT_QUIET | AR_BT_MODE); | 178 | REG_WRITE(ah, AR_BT_COEX_MODE, AR_BT_QUIET | AR_BT_MODE); |
179 | REG_WRITE(ah, AR_BT_COEX_WEIGHT, 0); | 179 | REG_WRITE(ah, AR_BT_COEX_WEIGHT, 0); |
180 | REG_WRITE(ah, AR_BT_COEX_MODE2, 0); | 180 | REG_WRITE(ah, AR_BT_COEX_MODE2, 0); |
diff --git a/drivers/net/wireless/ath/ath9k/btcoex.h b/drivers/net/wireless/ath/ath9k/btcoex.h index 72c613d9c53d..aea6d3fbb5b4 100644 --- a/drivers/net/wireless/ath/ath9k/btcoex.h +++ b/drivers/net/wireless/ath/ath9k/btcoex.h | |||
@@ -56,7 +56,7 @@ struct ath_btcoex_config { | |||
56 | }; | 56 | }; |
57 | 57 | ||
58 | struct ath_btcoex_info { | 58 | struct ath_btcoex_info { |
59 | enum ath_btcoex_scheme btcoex_scheme; | 59 | enum ath_btcoex_scheme scheme; |
60 | bool enabled; | 60 | bool enabled; |
61 | u8 wlanactive_gpio; | 61 | u8 wlanactive_gpio; |
62 | u8 btactive_gpio; | 62 | u8 btactive_gpio; |
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index bbbd454fffef..0b7e2859c1ef 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -3733,13 +3733,13 @@ void ath9k_hw_fill_cap_info(struct ath_hw *ah) | |||
3733 | btcoex_info->wlanactive_gpio = ATH_WLANACTIVE_GPIO; | 3733 | btcoex_info->wlanactive_gpio = ATH_WLANACTIVE_GPIO; |
3734 | 3734 | ||
3735 | if (AR_SREV_9285(ah)) { | 3735 | if (AR_SREV_9285(ah)) { |
3736 | btcoex_info->btcoex_scheme = ATH_BTCOEX_CFG_3WIRE; | 3736 | btcoex_info->scheme = ATH_BTCOEX_CFG_3WIRE; |
3737 | btcoex_info->btpriority_gpio = ATH_BTPRIORITY_GPIO; | 3737 | btcoex_info->btpriority_gpio = ATH_BTPRIORITY_GPIO; |
3738 | } else { | 3738 | } else { |
3739 | btcoex_info->btcoex_scheme = ATH_BTCOEX_CFG_2WIRE; | 3739 | btcoex_info->scheme = ATH_BTCOEX_CFG_2WIRE; |
3740 | } | 3740 | } |
3741 | } else { | 3741 | } else { |
3742 | btcoex_info->btcoex_scheme = ATH_BTCOEX_CFG_NONE; | 3742 | btcoex_info->scheme = ATH_BTCOEX_CFG_NONE; |
3743 | } | 3743 | } |
3744 | } | 3744 | } |
3745 | 3745 | ||
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 7ca6e3aa7bc4..3d0eb68c863c 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -443,7 +443,7 @@ void ath_update_chainmask(struct ath_softc *sc, int is_ht) | |||
443 | struct ath_hw *ah = sc->sc_ah; | 443 | struct ath_hw *ah = sc->sc_ah; |
444 | 444 | ||
445 | if ((sc->sc_flags & SC_OP_SCANNING) || is_ht || | 445 | if ((sc->sc_flags & SC_OP_SCANNING) || is_ht || |
446 | (ah->btcoex_info.btcoex_scheme != ATH_BTCOEX_CFG_NONE)) { | 446 | (ah->btcoex_info.scheme != ATH_BTCOEX_CFG_NONE)) { |
447 | sc->tx_chainmask = sc->sc_ah->caps.tx_chainmask; | 447 | sc->tx_chainmask = sc->sc_ah->caps.tx_chainmask; |
448 | sc->rx_chainmask = sc->sc_ah->caps.rx_chainmask; | 448 | sc->rx_chainmask = sc->sc_ah->caps.rx_chainmask; |
449 | } else { | 449 | } else { |
@@ -511,7 +511,7 @@ static void ath9k_tasklet(unsigned long data) | |||
511 | sc->sc_flags |= SC_OP_WAIT_FOR_BEACON | SC_OP_BEACON_SYNC; | 511 | sc->sc_flags |= SC_OP_WAIT_FOR_BEACON | SC_OP_BEACON_SYNC; |
512 | } | 512 | } |
513 | 513 | ||
514 | if (ah->btcoex_info.btcoex_scheme == ATH_BTCOEX_CFG_3WIRE) | 514 | if (ah->btcoex_info.scheme == ATH_BTCOEX_CFG_3WIRE) |
515 | if (status & ATH9K_INT_GENTIMER) | 515 | if (status & ATH9K_INT_GENTIMER) |
516 | ath_gen_timer_isr(sc->sc_ah); | 516 | ath_gen_timer_isr(sc->sc_ah); |
517 | 517 | ||
@@ -1287,7 +1287,7 @@ void ath_detach(struct ath_softc *sc) | |||
1287 | ath_tx_cleanupq(sc, &sc->tx.txq[i]); | 1287 | ath_tx_cleanupq(sc, &sc->tx.txq[i]); |
1288 | 1288 | ||
1289 | if ((sc->btcoex.no_stomp_timer) && | 1289 | if ((sc->btcoex.no_stomp_timer) && |
1290 | ah->btcoex_info.btcoex_scheme == ATH_BTCOEX_CFG_3WIRE) | 1290 | ah->btcoex_info.scheme == ATH_BTCOEX_CFG_3WIRE) |
1291 | ath_gen_timer_free(ah, sc->btcoex.no_stomp_timer); | 1291 | ath_gen_timer_free(ah, sc->btcoex.no_stomp_timer); |
1292 | 1292 | ||
1293 | ath9k_hw_detach(ah); | 1293 | ath9k_hw_detach(ah); |
@@ -1674,7 +1674,7 @@ static int ath_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid) | |||
1674 | ARRAY_SIZE(ath9k_5ghz_chantable); | 1674 | ARRAY_SIZE(ath9k_5ghz_chantable); |
1675 | } | 1675 | } |
1676 | 1676 | ||
1677 | switch (ah->btcoex_info.btcoex_scheme) { | 1677 | switch (ah->btcoex_info.scheme) { |
1678 | case ATH_BTCOEX_CFG_NONE: | 1678 | case ATH_BTCOEX_CFG_NONE: |
1679 | break; | 1679 | break; |
1680 | case ATH_BTCOEX_CFG_2WIRE: | 1680 | case ATH_BTCOEX_CFG_2WIRE: |
@@ -2199,13 +2199,13 @@ static int ath9k_start(struct ieee80211_hw *hw) | |||
2199 | 2199 | ||
2200 | ieee80211_queue_delayed_work(sc->hw, &sc->tx_complete_work, 0); | 2200 | ieee80211_queue_delayed_work(sc->hw, &sc->tx_complete_work, 0); |
2201 | 2201 | ||
2202 | if ((ah->btcoex_info.btcoex_scheme != ATH_BTCOEX_CFG_NONE) && | 2202 | if ((ah->btcoex_info.scheme != ATH_BTCOEX_CFG_NONE) && |
2203 | !ah->btcoex_info.enabled) { | 2203 | !ah->btcoex_info.enabled) { |
2204 | ath9k_hw_btcoex_init_weight(ah); | 2204 | ath9k_hw_btcoex_init_weight(ah); |
2205 | ath9k_hw_btcoex_enable(ah); | 2205 | ath9k_hw_btcoex_enable(ah); |
2206 | 2206 | ||
2207 | ath_pcie_aspm_disable(sc); | 2207 | ath_pcie_aspm_disable(sc); |
2208 | if (ah->btcoex_info.btcoex_scheme == ATH_BTCOEX_CFG_3WIRE) | 2208 | if (ah->btcoex_info.scheme == ATH_BTCOEX_CFG_3WIRE) |
2209 | ath9k_btcoex_timer_resume(sc); | 2209 | ath9k_btcoex_timer_resume(sc); |
2210 | } | 2210 | } |
2211 | 2211 | ||
@@ -2361,7 +2361,7 @@ static void ath9k_stop(struct ieee80211_hw *hw) | |||
2361 | 2361 | ||
2362 | if (ah->btcoex_info.enabled) { | 2362 | if (ah->btcoex_info.enabled) { |
2363 | ath9k_hw_btcoex_disable(ah); | 2363 | ath9k_hw_btcoex_disable(ah); |
2364 | if (ah->btcoex_info.btcoex_scheme == ATH_BTCOEX_CFG_3WIRE) | 2364 | if (ah->btcoex_info.scheme == ATH_BTCOEX_CFG_3WIRE) |
2365 | ath9k_btcoex_timer_pause(sc); | 2365 | ath9k_btcoex_timer_pause(sc); |
2366 | } | 2366 | } |
2367 | 2367 | ||