diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2012-06-04 06:57:41 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-06 15:20:25 -0400 |
commit | 97ba515a201bc61c7d36c41ad728b0a7debd5d88 (patch) | |
tree | e8e374ca13b799ecf62a0f1f28b381bc3d6fd267 | |
parent | 31604cf0a73ffd63929f3a646d5402d5901c6e4b (diff) |
ath9k: Add MCI interrupt to debugfs statistics
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index fde700c4e490..c134ddaa10a1 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c | |||
@@ -374,6 +374,8 @@ void ath_debug_stat_interrupt(struct ath_softc *sc, enum ath9k_int status) | |||
374 | sc->debug.stats.istats.dtim++; | 374 | sc->debug.stats.istats.dtim++; |
375 | if (status & ATH9K_INT_TSFOOR) | 375 | if (status & ATH9K_INT_TSFOOR) |
376 | sc->debug.stats.istats.tsfoor++; | 376 | sc->debug.stats.istats.tsfoor++; |
377 | if (status & ATH9K_INT_MCI) | ||
378 | sc->debug.stats.istats.mci++; | ||
377 | } | 379 | } |
378 | 380 | ||
379 | static ssize_t read_file_interrupt(struct file *file, char __user *user_buf, | 381 | 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 | PR_IS("DTIMSYNC", dtimsync); | 420 | PR_IS("DTIMSYNC", dtimsync); |
419 | PR_IS("DTIM", dtim); | 421 | PR_IS("DTIM", dtim); |
420 | PR_IS("TSFOOR", tsfoor); | 422 | PR_IS("TSFOOR", tsfoor); |
423 | PR_IS("MCI", mci); | ||
421 | PR_IS("TOTAL", total); | 424 | PR_IS("TOTAL", total); |
422 | 425 | ||
423 | len += snprintf(buf + len, mxlen - len, | 426 | len += snprintf(buf + len, mxlen - len, |
diff --git a/drivers/net/wireless/ath/ath9k/debug.h b/drivers/net/wireless/ath/ath9k/debug.h index c34da09d9103..d0f851cea43a 100644 --- a/drivers/net/wireless/ath/ath9k/debug.h +++ b/drivers/net/wireless/ath/ath9k/debug.h | |||
@@ -86,6 +86,7 @@ struct ath_interrupt_stats { | |||
86 | u32 dtim; | 86 | u32 dtim; |
87 | u32 bb_watchdog; | 87 | u32 bb_watchdog; |
88 | u32 tsfoor; | 88 | u32 tsfoor; |
89 | u32 mci; | ||
89 | 90 | ||
90 | /* Sync-cause stats */ | 91 | /* Sync-cause stats */ |
91 | u32 sync_cause_all; | 92 | u32 sync_cause_all; |