summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/debug.h
diff options
context:
space:
mode:
authorBruno Randolf <br1@einfach.org>2010-03-09 16:56:00 +0900
committerJohn W. Linville <linville@tuxdriver.com>2010-03-10 17:44:39 -0500
commit7644395f8df9aa5b42af268a485b83e44bba2784 (patch)
treedca8b3d98c45cf8e6fceb2545b34daa96cb26a2c /drivers/net/wireless/ath/ath5k/debug.h
parent919154540aa26e8c333c420b5b930e94ef7a6839 (diff)
downloadlinux-stable-7644395f8df9aa5b42af268a485b83e44bba2784.tar.gz
linux-stable-7644395f8df9aa5b42af268a485b83e44bba2784.tar.bz2
linux-stable-7644395f8df9aa5b42af268a485b83e44bba2784.zip
ath5k: add debugfs file frameerrors
add a debugfs file to see different RX and TX errors as reported in our status descriptors. this can help to diagnose driver problems. statistics can be cleared by writing 'clear' into the frameerrors file. example: # cat /sys/kernel/debug/ath5k/phy0/frameerrors RX --------------------- CRC 27 (11%) PHY 3 (1%) FIFO 0 (0%) decrypt 0 (0%) MIC 0 (0%) process 0 (0%) jumbo 0 (0%) [RX all 245] TX --------------------- retry 2 (9%) FIFO 0 (0%) filter 0 (0%) [TX all 21] Signed-off-by: Bruno Randolf <br1@einfach.org> Acked-by: Nick Kossifidis <mickflemm@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/debug.h')
-rw-r--r--drivers/net/wireless/ath/ath5k/debug.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath5k/debug.h b/drivers/net/wireless/ath/ath5k/debug.h
index 018612711045..da24ff52e274 100644
--- a/drivers/net/wireless/ath/ath5k/debug.h
+++ b/drivers/net/wireless/ath/ath5k/debug.h
@@ -75,6 +75,7 @@ struct ath5k_dbg_info {
struct dentry *debugfs_beacon;
struct dentry *debugfs_reset;
struct dentry *debugfs_antenna;
+ struct dentry *debugfs_frameerrors;
};
/**