iwlwifi: more statistics counter for agn in debugfs
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Tue, 6 Jul 2010 17:39:33 +0000 (10:39 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Sat, 17 Jul 2010 14:37:41 +0000 (07:37 -0700)
Display "wait_for_silence_timeout_cnt" for _agn devices
in debugfs as part of uCode statistics

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c

index 75d6bfcbc60770fe0a3f73f23018c7167ac12a94..5e5c5122fb152b2590257c17243a164f0b0943d4 100644 (file)
@@ -811,6 +811,13 @@ ssize_t iwl_ucode_general_stats_read(struct file *file, char __user *user_buf,
                         le32_to_cpu(dbg->burst_count),
                         accum_dbg->burst_count,
                         delta_dbg->burst_count, max_dbg->burst_count);
+       pos += scnprintf(buf + pos, bufsz - pos,
+                        "  %-30s %10u  %10u  %10u  %10u\n",
+                        "wait_for_silence_timeout_count:",
+                        le32_to_cpu(dbg->wait_for_silence_timeout_cnt),
+                        accum_dbg->wait_for_silence_timeout_cnt,
+                        delta_dbg->wait_for_silence_timeout_cnt,
+                        max_dbg->wait_for_silence_timeout_cnt);
        pos += scnprintf(buf + pos, bufsz - pos,
                         "  %-30s %10u  %10u  %10u  %10u\n",
                         "sleep_time:",