ath9k: replaces SC_OP_BTCOEX_ENABLED with a bool
[linux-2.6.git] / drivers / net / wireless / ath / ath9k / main.c
index 9ac1ee0638f0bfff1a2073a994927ee750e720a7..cd1bc9c27527413aa2923ba6ab14dfcea387da8a 100644 (file)
@@ -2199,7 +2199,7 @@ static int ath9k_start(struct ieee80211_hw *hw)
        ieee80211_queue_delayed_work(sc->hw, &sc->tx_complete_work, 0);
 
        if ((ah->btcoex_info.btcoex_scheme != ATH_BTCOEX_CFG_NONE) &&
-           !(sc->sc_flags & SC_OP_BTCOEX_ENABLED)) {
+           !ah->btcoex_info.enabled) {
                ath9k_hw_btcoex_init_weight(ah);
                ath9k_hw_btcoex_enable(ah);
 
@@ -2358,7 +2358,7 @@ static void ath9k_stop(struct ieee80211_hw *hw)
                return; /* another wiphy still in use */
        }
 
-       if (sc->sc_flags & SC_OP_BTCOEX_ENABLED) {
+       if (ah->btcoex_info.enabled) {
                ath9k_hw_btcoex_disable(ah);
                if (ah->btcoex_info.btcoex_scheme == ATH_BTCOEX_CFG_3WIRE)
                        ath9k_btcoex_timer_pause(sc);