From: Felix Fietkau Date: Fri, 21 Feb 2014 10:45:36 +0000 (+0100) Subject: ath9k: list more reset causes in debugfs X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=443626e5a956d0c740034e53cf4164c2c1069cd4;p=linux-beck.git ath9k: list more reset causes in debugfs Number of MAC hangs and stuck beacons were missing Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index ab7264c1d8f7..f42ed3b17330 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c @@ -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]);