From 23f44d2b30e134fe53277cf4df4a5109b5e3ffe3 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Tue, 25 Sep 2012 05:56:59 +0000 Subject: [PATCH] Call ath_tx_tid_unsched() after the node has been flushed, so the state can be printed correctly. --- sys/dev/ath/if_ath_tx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/dev/ath/if_ath_tx.c b/sys/dev/ath/if_ath_tx.c index 751c5623d56e..adde6fc452d5 100644 --- a/sys/dev/ath/if_ath_tx.c +++ b/sys/dev/ath/if_ath_tx.c @@ -3468,12 +3468,11 @@ ath_tx_node_flush(struct ath_softc *sc, struct ath_node *an) struct ath_tid *atid = &an->an_tid[tid]; struct ath_txq *txq = sc->sc_ac2q[atid->ac]; - /* Remove this tid from the list of active tids */ ATH_TXQ_LOCK(txq); - ath_tx_tid_unsched(sc, atid); - /* Free packets */ ath_tx_tid_drain(sc, an, atid, &bf_cq); + /* Remove this tid from the list of active tids */ + ath_tx_tid_unsched(sc, atid); ATH_TXQ_UNLOCK(txq); }