Add a work-around for some strange net80211 BAR races in the wireless
stack. There are unfortunately quite a few odd cases in BAR TX and BAR TX retransmission that I haven't yet fully diagnosed. So for now, add this work-around so the resume() function isn't called too often, decrementing pause to -1 (and causing things to stay paused.)
This commit is contained in:
parent
c071417ab7
commit
965fb08287
@ -5043,10 +5043,19 @@ ath_bar_response(struct ieee80211_node *ni, struct ieee80211_tx_ampdu *tap,
|
||||
* XXX if this is attempt=50, the TID will be downgraded
|
||||
* XXX to a non-aggregate session. So we must unpause the
|
||||
* XXX TID here or it'll never be done.
|
||||
*
|
||||
* Also, don't call it if bar_tx/bar_wait are 0; something
|
||||
* has beaten us to the punch? (XXX figure out what?)
|
||||
*/
|
||||
if (status == 0 || attempts == 50) {
|
||||
ATH_TXQ_LOCK(sc->sc_ac2q[atid->ac]);
|
||||
ath_tx_tid_bar_unsuspend(sc, atid);
|
||||
if (atid->bar_tx == 0 || atid->bar_wait == 0)
|
||||
device_printf(sc->sc_dev,
|
||||
"%s: huh? bar_tx=%d, bar_wait=%d\n",
|
||||
__func__,
|
||||
atid->bar_tx, atid->bar_wait);
|
||||
else
|
||||
ath_tx_tid_bar_unsuspend(sc, atid);
|
||||
ATH_TXQ_UNLOCK(sc->sc_ac2q[atid->ac]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user