Commit 97ba515a authored by Sujith Manoharan's avatar Sujith Manoharan Committed by John W. Linville

ath9k: Add MCI interrupt to debugfs statistics

Signed-off-by: default avatarSujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 31604cf0
...@@ -374,6 +374,8 @@ void ath_debug_stat_interrupt(struct ath_softc *sc, enum ath9k_int status) ...@@ -374,6 +374,8 @@ void ath_debug_stat_interrupt(struct ath_softc *sc, enum ath9k_int status)
sc->debug.stats.istats.dtim++; sc->debug.stats.istats.dtim++;
if (status & ATH9K_INT_TSFOOR) if (status & ATH9K_INT_TSFOOR)
sc->debug.stats.istats.tsfoor++; sc->debug.stats.istats.tsfoor++;
if (status & ATH9K_INT_MCI)
sc->debug.stats.istats.mci++;
} }
static ssize_t read_file_interrupt(struct file *file, char __user *user_buf, static ssize_t read_file_interrupt(struct file *file, char __user *user_buf,
...@@ -418,6 +420,7 @@ static ssize_t read_file_interrupt(struct file *file, char __user *user_buf, ...@@ -418,6 +420,7 @@ static ssize_t read_file_interrupt(struct file *file, char __user *user_buf,
PR_IS("DTIMSYNC", dtimsync); PR_IS("DTIMSYNC", dtimsync);
PR_IS("DTIM", dtim); PR_IS("DTIM", dtim);
PR_IS("TSFOOR", tsfoor); PR_IS("TSFOOR", tsfoor);
PR_IS("MCI", mci);
PR_IS("TOTAL", total); PR_IS("TOTAL", total);
len += snprintf(buf + len, mxlen - len, len += snprintf(buf + len, mxlen - len,
......
...@@ -86,6 +86,7 @@ struct ath_interrupt_stats { ...@@ -86,6 +86,7 @@ struct ath_interrupt_stats {
u32 dtim; u32 dtim;
u32 bb_watchdog; u32 bb_watchdog;
u32 tsfoor; u32 tsfoor;
u32 mci;
/* Sync-cause stats */ /* Sync-cause stats */
u32 sync_cause_all; u32 sync_cause_all;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment