summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-05-21 22:43:38 +0000
committeradrian <adrian@FreeBSD.org>2012-05-21 22:43:38 +0000
commit8d75cfbaa616698128a0fd12926ca3c85b6bd21c (patch)
tree32cab907490e487f36e3d4e4d6fca0c5f05a9375
parent36f1ea103b76c95b29f80e73342e213b320cd352 (diff)
downloadFreeBSD-src-8d75cfbaa616698128a0fd12926ca3c85b6bd21c.zip
FreeBSD-src-8d75cfbaa616698128a0fd12926ca3c85b6bd21c.tar.gz
For now, add a quick debugging patch to log when the hw TXQ != the TID/AC.
-rw-r--r--sys/dev/ath/if_ath_tx.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath_tx.c b/sys/dev/ath/if_ath_tx.c
index 1875e87..cd71c91 100644
--- a/sys/dev/ath/if_ath_tx.c
+++ b/sys/dev/ath/if_ath_tx.c
@@ -1298,6 +1298,18 @@ ath_tx_normal_setup(struct ath_softc *sc, struct ieee80211_node *ni,
return EIO;
}
+ /* Check if the TXQ wouldn't match what the hardware TXQ is! */
+ if (txq != sc->sc_ac2q[pri]) {
+ device_printf(sc->sc_dev,
+ "%s: txq=%p (%d), pri=%d, pri txq=%p (%d)\n",
+ __func__,
+ txq,
+ txq->axq_qnum,
+ pri,
+ sc->sc_ac2q[pri],
+ sc->sc_ac2q[pri]->axq_qnum);
+ }
+
/*
* Calculate miscellaneous flags.
*/
OpenPOWER on IntegriCloud