|
@@ -977,7 +977,10 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
|
|
|
if (sdata->vif.txq) {
|
|
|
struct txq_info *txqi = to_txq_info(sdata->vif.txq);
|
|
|
|
|
|
+ spin_lock_bh(&txqi->queue.lock);
|
|
|
ieee80211_purge_tx_queue(&local->hw, &txqi->queue);
|
|
|
+ spin_unlock_bh(&txqi->queue.lock);
|
|
|
+
|
|
|
atomic_set(&sdata->txqs_len[txqi->txq.ac], 0);
|
|
|
}
|
|
|
|