aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/debug.c
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2011-01-10 02:11:52 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-01-21 15:34:17 -0500
commit60f2d1d506195803fa6e1dcf3972637b740fdd60 (patch)
tree583cf2f90cfe193f502c6ad8f4ab0e5135611325 /drivers/net/wireless/ath/ath9k/debug.c
parent71e025a5a630681ad8b37d4426a994d199976ec9 (diff)
ath9k: Restart xmit logic in xmit watchdog.
The system can get into a state where the xmit queue is stopped, but there are no packets pending, so the queue will not be restarted. Add logic to the xmit watchdog to attempt to restart the xmit logic if this situation is detected. Example 'dmesg' output: ath: txq: f4e723e0 axq_qnum: 2, mac80211_qnum: 2 axq_link: f4e996c8 pending frames: 1 axq_acq empty: 1 stopped: 0 axq_depth: 0 Attempting to restart tx logic. Signed-off-by: Ben Greear <greearb@candelatech.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/debug.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c
index 9e009ccd0069..b0cb792d38ca 100644
--- a/drivers/net/wireless/ath/ath9k/debug.c
+++ b/drivers/net/wireless/ath/ath9k/debug.c
@@ -629,9 +629,11 @@ static ssize_t read_file_xmit(struct file *file, char __user *user_buf,
629 if (buf == NULL) 629 if (buf == NULL)
630 return -ENOMEM; 630 return -ENOMEM;
631 631
632 len += sprintf(buf, "Num-Tx-Queues: %i tx-queues-setup: 0x%x\n" 632 len += sprintf(buf, "Num-Tx-Queues: %i tx-queues-setup: 0x%x"
633 " poll-work-seen: %u\n"
633 "%30s %10s%10s%10s\n\n", 634 "%30s %10s%10s%10s\n\n",
634 ATH9K_NUM_TX_QUEUES, sc->tx.txqsetup, 635 ATH9K_NUM_TX_QUEUES, sc->tx.txqsetup,
636 sc->tx_complete_poll_work_seen,
635 "BE", "BK", "VI", "VO"); 637 "BE", "BK", "VI", "VO");
636 638
637 PR("MPDUs Queued: ", queued); 639 PR("MPDUs Queued: ", queued);