]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath9k: list more reset causes in debugfs
authorFelix Fietkau <nbd@openwrt.org>
Fri, 21 Feb 2014 10:45:36 +0000 (11:45 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 24 Feb 2014 20:38:37 +0000 (15:38 -0500)
Number of MAC hangs and stuck beacons were missing

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/debug.c

index ab7264c1d8f73904ac9005fc19ec6d6aa3e30b30..f42ed3b1733068bfe9e406ff8eddfb5909e78eda 100644 (file)
@@ -865,6 +865,12 @@ static ssize_t read_file_reset(struct file *file, char __user *user_buf,
        len += scnprintf(buf + len, sizeof(buf) - len,
                         "%17s: %2d\n", "PLL RX Hang",
                         sc->debug.stats.reset[RESET_TYPE_PLL_HANG]);
+       len += scnprintf(buf + len, sizeof(buf) - len,
+                        "%17s: %2d\n", "MAC Hang",
+                        sc->debug.stats.reset[RESET_TYPE_MAC_HANG]);
+       len += scnprintf(buf + len, sizeof(buf) - len,
+                        "%17s: %2d\n", "Stuck Beacon",
+                        sc->debug.stats.reset[RESET_TYPE_BEACON_STUCK]);
        len += scnprintf(buf + len, sizeof(buf) - len,
                         "%17s: %2d\n", "MCI Reset",
                         sc->debug.stats.reset[RESET_TYPE_MCI]);