summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath5k/base.h
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2010-10-01 10:54:04 -0700
committerJohn W. Linville <linville@tuxdriver.com>2010-10-05 13:35:25 -0400
commitb72acddbbe521d1372e7e9106e9d72e1cbab3010 (patch)
treeceddb7117ff551d9b65468f81b065212e35e139e /drivers/net/wireless/ath/ath5k/base.h
parent1be7fe8de9f25e173282f8f989f83bc5b5decfe9 (diff)
ath5k: Print rx/tx bytes in debugfs
This adds counters for tx and rx bytes, including any errored packets as well as all wireless headers. Signed-off-by: Ben Greear <greearb@candelatech.com> Acked-by: Bruno Randolf <br1@einfach.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/base.h')
-rw-r--r--drivers/net/wireless/ath/ath5k/base.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.h b/drivers/net/wireless/ath/ath5k/base.h
index b9f6d13b7675..9a79773cdc2a 100644
--- a/drivers/net/wireless/ath/ath5k/base.h
+++ b/drivers/net/wireless/ath/ath5k/base.h
@@ -121,6 +121,13 @@ struct ath5k_statistics {
/* frame errors */
unsigned int rx_all_count; /* all RX frames, including errors */
unsigned int tx_all_count; /* all TX frames, including errors */
+ unsigned int rx_bytes_count; /* all RX bytes, including errored pks
+ * and the MAC headers for each packet
+ */
+ unsigned int tx_bytes_count; /* all TX bytes, including errored pkts
+ * and the MAC headers and padding for
+ * each packet.
+ */
unsigned int rxerr_crc;
unsigned int rxerr_phy;
unsigned int rxerr_phy_code[32];