diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-04-17 20:56:10 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-04-17 20:56:10 +0000 |
commit | cbc16e179e43f7e49d5b30187b6c7bb6a7d1efaf (patch) | |
tree | b7efa42128ff185d785b18c951228434c76c67a3 /package/mac80211 | |
parent | ae51f1972fe7b6d3b0af5c99ab10ea1a4e2eee84 (diff) | |
download | master-31e0f0ae-cbc16e179e43f7e49d5b30187b6c7bb6a7d1efaf.tar.gz master-31e0f0ae-cbc16e179e43f7e49d5b30187b6c7bb6a7d1efaf.tar.bz2 master-31e0f0ae-cbc16e179e43f7e49d5b30187b6c7bb6a7d1efaf.zip |
ath9k: add a patch to show excessive retry counts for single MPDUs
SVN-Revision: 26711
Diffstat (limited to 'package/mac80211')
-rw-r--r-- | package/mac80211/patches/570-ath9k_debugfs_show_xretry.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/package/mac80211/patches/570-ath9k_debugfs_show_xretry.patch b/package/mac80211/patches/570-ath9k_debugfs_show_xretry.patch new file mode 100644 index 0000000000..858f279bb9 --- /dev/null +++ b/package/mac80211/patches/570-ath9k_debugfs_show_xretry.patch @@ -0,0 +1,32 @@ +--- a/drivers/net/wireless/ath/ath9k/debug.c ++++ b/drivers/net/wireless/ath/ath9k/debug.c +@@ -543,6 +543,7 @@ static ssize_t read_file_xmit(struct fil + + PR("MPDUs Queued: ", queued); + PR("MPDUs Completed: ", completed); ++ PR("MPDUs XRetried: ", xretries); + PR("Aggregates: ", a_aggr); + PR("AMPDUs Queued HW:", a_queued_hw); + PR("AMPDUs Queued SW:", a_queued_sw); +@@ -798,7 +799,10 @@ void ath_debug_stat_tx(struct ath_softc + else + TX_STAT_INC(qnum, a_completed); + } else { +- TX_STAT_INC(qnum, completed); ++ if (bf_isxretried(bf)) ++ TX_STAT_INC(qnum, xretries); ++ else ++ TX_STAT_INC(qnum, completed); + } + + if (ts->ts_status & ATH9K_TXERR_FIFO) +--- a/drivers/net/wireless/ath/ath9k/debug.h ++++ b/drivers/net/wireless/ath/ath9k/debug.h +@@ -112,6 +112,7 @@ struct ath_tx_stats { + u32 tx_bytes_all; + u32 queued; + u32 completed; ++ u32 xretries; + u32 a_aggr; + u32 a_queued_hw; + u32 a_queued_sw; |