ath9k: Add MCI interrupt to debugfs statistics
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Mon, 4 Jun 2012 10:57:41 +0000 (16:27 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 Jun 2012 19:20:25 +0000 (15:20 -0400)
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/debug.c
drivers/net/wireless/ath/ath9k/debug.h

index fde700c4e49092d760e537ba6dda6409b609fa63..c134ddaa10a103dc6bff587d1644b1eb49ae41f3 100644 (file)
@@ -374,6 +374,8 @@ void ath_debug_stat_interrupt(struct ath_softc *sc, enum ath9k_int status)
                sc->debug.stats.istats.dtim++;
        if (status & ATH9K_INT_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,
@@ -418,6 +420,7 @@ static ssize_t read_file_interrupt(struct file *file, char __user *user_buf,
        PR_IS("DTIMSYNC", dtimsync);
        PR_IS("DTIM", dtim);
        PR_IS("TSFOOR", tsfoor);
+       PR_IS("MCI", mci);
        PR_IS("TOTAL", total);
 
        len += snprintf(buf + len, mxlen - len,
index c34da09d91032518b7ad49fea2e41f31b2bc9152..d0f851cea43ab83fa8ccce8f8d8c9e9def080bca 100644 (file)
@@ -86,6 +86,7 @@ struct ath_interrupt_stats {
        u32 dtim;
        u32 bb_watchdog;
        u32 tsfoor;
+       u32 mci;
 
        /* Sync-cause stats */
        u32 sync_cause_all;