Disable the HWQ contents upon a TX queue reset, rather than a TX queue flush.

This is designed to assist in figuring out what the hardware state is
when something like a queue hang has occured.
This commit is contained in:
adrian 2012-04-04 22:24:11 +00:00
parent 16c6304ced
commit 5f2a4bba47

View File

@ -4910,6 +4910,10 @@ ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq, int dosched)
if (sc->sc_debug & ATH_DEBUG_XMIT_DESC)
ath_printtxbuf(sc, bf, txq->axq_qnum, 0,
status == HAL_OK);
else if ((sc->sc_debug & ATH_DEBUG_RESET) && (dosched == 0)) {
ath_printtxbuf(sc, bf, txq->axq_qnum, 0,
status == HAL_OK);
}
#endif
if (status == HAL_EINPROGRESS) {
ATH_TXQ_UNLOCK(txq);