diff options
author | adrian <adrian@FreeBSD.org> | 2012-04-04 22:24:11 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-04-04 22:24:11 +0000 |
commit | 5f2a4bba47e02f7ade36b13e02dd75920e32846a (patch) | |
tree | 5010aa6f2e3c7fdea30be4eb6d64b73c1fce5734 /sys/dev/ath/if_ath.c | |
parent | 16c6304ced4124d6653a2ac2b44da9c1dd4b415a (diff) | |
download | FreeBSD-src-5f2a4bba47e02f7ade36b13e02dd75920e32846a.zip FreeBSD-src-5f2a4bba47e02f7ade36b13e02dd75920e32846a.tar.gz |
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.
Diffstat (limited to 'sys/dev/ath/if_ath.c')
-rw-r--r-- | sys/dev/ath/if_ath.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 2b21a0f..b71f5b1 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -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); |