1 --- a/drivers/net/wireless/ath/ath5k/base.c
2 +++ b/drivers/net/wireless/ath/ath5k/base.c
3 @@ -1555,7 +1555,8 @@ ath5k_tx_queue(struct ieee80211_hw *hw,
7 - if (txq->txq_len >= txq->txq_max)
8 + if (txq->txq_len >= txq->txq_max &&
9 + txq->qnum <= AR5K_TX_QUEUE_ID_DATA_MAX)
10 ieee80211_stop_queue(hw, txq->qnum);
12 spin_lock_irqsave(&sc->txbuflock, flags);
13 @@ -1931,6 +1932,10 @@ ath5k_beacon_send(struct ath5k_softc *sc
14 skb = ieee80211_get_buffered_bc(sc->hw, vif);
16 ath5k_tx_queue(sc->hw, skb, sc->cabq);
18 + if (sc->cabq->txq_len >= sc->cabq->txq_max)
21 skb = ieee80211_get_buffered_bc(sc->hw, vif);