aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-dev.h
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2009-10-09 16:20:29 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-27 16:48:00 -0400
commit92a35bda792cf9295b1d399f7c937d4560292b1e (patch)
tree4b3121359d69542286480b7b16d2b91c8149415a /drivers/net/wireless/iwlwifi/iwl-dev.h
parent88804e2b33b6ab3974ff2330cd045ca53d6750c5 (diff)
iwlwifi: showing accumulative ucode statistics counters
Adding accumulative statistics counters in iwlwifi driver. Statistics counters are reported by uCode every beacon interval; but can be reset by uCode when needed. The accumulative statistics counters is maintained by driver to keep track of the history of all the counters. Update the ucode stats files in debugfs to display both latest and accumulative counters. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-dev.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index 6d7c2350d8c9..8d087f0455de 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -1124,7 +1124,9 @@ struct iwl_priv {
1124 struct iwl_tt_mgmt thermal_throttle; 1124 struct iwl_tt_mgmt thermal_throttle;
1125 1125
1126 struct iwl_notif_statistics statistics; 1126 struct iwl_notif_statistics statistics;
1127 unsigned long last_statistics_time; 1127#ifdef CONFIG_IWLWIFI_DEBUG
1128 struct iwl_notif_statistics accum_statistics;
1129#endif
1128 1130
1129 /* context information */ 1131 /* context information */
1130 u16 rates_mask; 1132 u16 rates_mask;