|
@@ -695,16 +695,18 @@ void ath9k_set_wiphy_idle(struct ath_wiphy *aphy, bool idle)
|
|
idle ? "idle" : "not-idle");
|
|
idle ? "idle" : "not-idle");
|
|
}
|
|
}
|
|
/* Only bother starting a queue on an active virtual wiphy */
|
|
/* Only bother starting a queue on an active virtual wiphy */
|
|
-void ath_mac80211_start_queue(struct ath_softc *sc, u16 skb_queue)
|
|
|
|
|
|
+bool ath_mac80211_start_queue(struct ath_softc *sc, u16 skb_queue)
|
|
{
|
|
{
|
|
struct ieee80211_hw *hw = sc->pri_wiphy->hw;
|
|
struct ieee80211_hw *hw = sc->pri_wiphy->hw;
|
|
unsigned int i;
|
|
unsigned int i;
|
|
|
|
+ bool txq_started = false;
|
|
|
|
|
|
spin_lock_bh(&sc->wiphy_lock);
|
|
spin_lock_bh(&sc->wiphy_lock);
|
|
|
|
|
|
/* Start the primary wiphy */
|
|
/* Start the primary wiphy */
|
|
if (sc->pri_wiphy->state == ATH_WIPHY_ACTIVE) {
|
|
if (sc->pri_wiphy->state == ATH_WIPHY_ACTIVE) {
|
|
ieee80211_wake_queue(hw, skb_queue);
|
|
ieee80211_wake_queue(hw, skb_queue);
|
|
|
|
+ txq_started = true;
|
|
goto unlock;
|
|
goto unlock;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -718,11 +720,13 @@ void ath_mac80211_start_queue(struct ath_softc *sc, u16 skb_queue)
|
|
|
|
|
|
hw = aphy->hw;
|
|
hw = aphy->hw;
|
|
ieee80211_wake_queue(hw, skb_queue);
|
|
ieee80211_wake_queue(hw, skb_queue);
|
|
|
|
+ txq_started = true;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
unlock:
|
|
unlock:
|
|
spin_unlock_bh(&sc->wiphy_lock);
|
|
spin_unlock_bh(&sc->wiphy_lock);
|
|
|
|
+ return txq_started;
|
|
}
|
|
}
|
|
|
|
|
|
/* Go ahead and propagate information to all virtual wiphys, it won't hurt */
|
|
/* Go ahead and propagate information to all virtual wiphys, it won't hurt */
|