diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-05-31 15:21:41 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-03 15:01:07 -0400 |
commit | 5a6f78afdabeb8b8e0811547fb98813323abf888 (patch) | |
tree | c07b2091a53f0f6929cceffeffa14e64ffc6fbaf /drivers/net/wireless | |
parent | 10f8113ecb76eea72f96c7cfb72d7fed7c282565 (diff) |
ath9k: show excessive-retry MPDUs in debugfs
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.h | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index 7230d6578b15..22d3a26e684d 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c | |||
@@ -600,6 +600,7 @@ static ssize_t read_file_xmit(struct file *file, char __user *user_buf, | |||
600 | 600 | ||
601 | PR("MPDUs Queued: ", queued); | 601 | PR("MPDUs Queued: ", queued); |
602 | PR("MPDUs Completed: ", completed); | 602 | PR("MPDUs Completed: ", completed); |
603 | PR("MPDUs XRetried: ", xretries); | ||
603 | PR("Aggregates: ", a_aggr); | 604 | PR("Aggregates: ", a_aggr); |
604 | PR("AMPDUs Queued HW:", a_queued_hw); | 605 | PR("AMPDUs Queued HW:", a_queued_hw); |
605 | PR("AMPDUs Queued SW:", a_queued_sw); | 606 | PR("AMPDUs Queued SW:", a_queued_sw); |
@@ -856,7 +857,10 @@ void ath_debug_stat_tx(struct ath_softc *sc, struct ath_buf *bf, | |||
856 | else | 857 | else |
857 | TX_STAT_INC(qnum, a_completed); | 858 | TX_STAT_INC(qnum, a_completed); |
858 | } else { | 859 | } else { |
859 | TX_STAT_INC(qnum, completed); | 860 | if (bf_isxretried(bf)) |
861 | TX_STAT_INC(qnum, xretries); | ||
862 | else | ||
863 | TX_STAT_INC(qnum, completed); | ||
860 | } | 864 | } |
861 | 865 | ||
862 | if (ts->ts_status & ATH9K_TXERR_FIFO) | 866 | if (ts->ts_status & ATH9K_TXERR_FIFO) |
diff --git a/drivers/net/wireless/ath/ath9k/debug.h b/drivers/net/wireless/ath/ath9k/debug.h index 8ce6ad80f4e2..4a04510e1111 100644 --- a/drivers/net/wireless/ath/ath9k/debug.h +++ b/drivers/net/wireless/ath/ath9k/debug.h | |||
@@ -116,6 +116,7 @@ struct ath_tx_stats { | |||
116 | u32 tx_bytes_all; | 116 | u32 tx_bytes_all; |
117 | u32 queued; | 117 | u32 queued; |
118 | u32 completed; | 118 | u32 completed; |
119 | u32 xretries; | ||
119 | u32 a_aggr; | 120 | u32 a_aggr; |
120 | u32 a_queued_hw; | 121 | u32 a_queued_hw; |
121 | u32 a_queued_sw; | 122 | u32 a_queued_sw; |