From 3d06af34b48677146f9f0bdf4a3db29f3c195b39 Mon Sep 17 00:00:00 2001 From: Simon Wunderlich Date: Tue, 22 Jul 2014 12:23:00 +0200 Subject: [PATCH] ath9k: queue debug Signed-off-by: Simon Wunderlich --- drivers/net/wireless/ath/ath9k/xmit.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index e9ad59b..41e9169 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c @@ -1813,8 +1813,14 @@ void ath_txq_schedule(struct ath_softc *sc, struct ath_txq *txq) bool sent = false; if (test_bit(ATH_OP_HW_RESET, &common->op_flags) || - list_empty(&txq->axq_acq)) + list_empty(&txq->axq_acq)) { + ath_dbg(common, QUEUE, "%s %d queue qnum: %d is empty, not processing\n", + __func__, __LINE__, txq->axq_qnum); return; + } + + ath_dbg(common, QUEUE, "%s %d queue qnum: %d, txq depth: %d\n", + __func__, __LINE__, txq->axq_qnum, txq->axq_depth); rcu_read_lock(); @@ -1826,6 +1832,8 @@ void ath_txq_schedule(struct ath_softc *sc, struct ath_txq *txq) last_tid = list_entry(ac->tid_q.prev, struct ath_atx_tid, list); list_del(&ac->list); ac->sched = false; + ath_dbg(common, QUEUE, "%s %d processing ac %p, list_empty(&ac->tid_q): %d\n", + __func__, __LINE__, ac, list_empty(&ac->tid_q)); while (!list_empty(&ac->tid_q)) { -- 1.9.1