source: trunk/package/mac80211/patches/447-ath5k_fix_queue_stop_warning.patch @ 27367

Last change on this file since 27367 was 27367, checked in by nbd, 5 years ago

ath5k: fix tx queue limit for the cabq, fixes warning described in #9465

File size: 671 bytes
  • drivers/net/wireless/ath/ath5k/base.c

    a b ath5k_tx_queue(struct ieee80211_hw *hw,  
    15551555                goto drop_packet; 
    15561556        } 
    15571557 
    1558         if (txq->txq_len >= txq->txq_max) 
     1558        if (txq->txq_len >= txq->txq_max && 
     1559            txq->qnum <= AR5K_TX_QUEUE_ID_DATA_MAX) 
    15591560                ieee80211_stop_queue(hw, txq->qnum); 
    15601561 
    15611562        spin_lock_irqsave(&sc->txbuflock, flags); 
    ath5k_beacon_send(struct ath5k_softc *sc 
    19311932        skb = ieee80211_get_buffered_bc(sc->hw, vif); 
    19321933        while (skb) { 
    19331934                ath5k_tx_queue(sc->hw, skb, sc->cabq); 
     1935 
     1936                if (sc->cabq->txq_len >= sc->cabq->txq_max) 
     1937                        break; 
     1938 
    19341939                skb = ieee80211_get_buffered_bc(sc->hw, vif); 
    19351940        } 
    19361941 
Note: See TracBrowser for help on using the repository browser.