From d6b2002327debfc9e2f5e5f9232755d752751602 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Wed, 4 Apr 2012 22:24:11 +0000 Subject: [PATCH] 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. --- sys/dev/ath/if_ath.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 2b21a0fe783e..b71f5b12b50e 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);