aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2010-01-08 13:04:42 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-01-12 14:02:11 -0500
commitf0118a4575d45ce3074c830660de938bc6e17bda (patch)
tree40953e36dc4f8472505a4b6b99ae10222b4691ac /drivers
parentf05279711b9a59ac10e0b6e5f3a7447886c72704 (diff)
iwlwifi: ucode statistics data structure update
Update data structure to match latest statistics report from uCode. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-commands.h6
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-debugfs.c3
2 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h
index 28f3800c560e..6bfc63f54b5e 100644
--- a/drivers/net/wireless/iwlwifi/iwl-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-commands.h
@@ -2984,7 +2984,7 @@ struct statistics_rx_ht_phy {
2984 __le32 agg_crc32_good; 2984 __le32 agg_crc32_good;
2985 __le32 agg_mpdu_cnt; 2985 __le32 agg_mpdu_cnt;
2986 __le32 agg_cnt; 2986 __le32 agg_cnt;
2987 __le32 reserved2; 2987 __le32 unsupport_mcs;
2988} __attribute__ ((packed)); 2988} __attribute__ ((packed));
2989 2989
2990#define INTERFERENCE_DATA_AVAILABLE cpu_to_le32(1) 2990#define INTERFERENCE_DATA_AVAILABLE cpu_to_le32(1)
@@ -3087,8 +3087,8 @@ struct statistics_div {
3087} __attribute__ ((packed)); 3087} __attribute__ ((packed));
3088 3088
3089struct statistics_general { 3089struct statistics_general {
3090 __le32 temperature; 3090 __le32 temperature; /* radio temperature */
3091 __le32 temperature_m; 3091 __le32 temperature_m; /* for 5000 and up, this is radio voltage */
3092 struct statistics_dbg dbg; 3092 struct statistics_dbg dbg;
3093 __le32 sleep_time; 3093 __le32 sleep_time;
3094 __le32 slots_out; 3094 __le32 slots_out;
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
index ee5aed12a4b1..510bad918f20 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
@@ -1387,6 +1387,9 @@ static ssize_t iwl_dbgfs_ucode_rx_stats_read(struct file *file,
1387 accum_ht->agg_mpdu_cnt); 1387 accum_ht->agg_mpdu_cnt);
1388 pos += scnprintf(buf + pos, bufsz - pos, "agg_cnt:\t\t%u\t\t\t%u\n", 1388 pos += scnprintf(buf + pos, bufsz - pos, "agg_cnt:\t\t%u\t\t\t%u\n",
1389 le32_to_cpu(ht->agg_cnt), accum_ht->agg_cnt); 1389 le32_to_cpu(ht->agg_cnt), accum_ht->agg_cnt);
1390 pos += scnprintf(buf + pos, bufsz - pos, "unsupport_mcs:\t\t%u\t\t\t%u\n",
1391 le32_to_cpu(ht->unsupport_mcs),
1392 accum_ht->unsupport_mcs);
1390 1393
1391 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); 1394 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos);
1392 kfree(buf); 1395 kfree(buf);