Skip to content

Commit

Permalink
iwlwifi: ucode statistics data structure update
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wey-Yi Guy authored and John W. Linville committed Jan 12, 2010
1 parent f052797 commit f0118a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wireless/iwlwifi/iwl-commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -2984,7 +2984,7 @@ struct statistics_rx_ht_phy {
__le32 agg_crc32_good;
__le32 agg_mpdu_cnt;
__le32 agg_cnt;
__le32 reserved2;
__le32 unsupport_mcs;
} __attribute__ ((packed));

#define INTERFERENCE_DATA_AVAILABLE cpu_to_le32(1)
Expand Down Expand Up @@ -3087,8 +3087,8 @@ struct statistics_div {
} __attribute__ ((packed));

struct statistics_general {
__le32 temperature;
__le32 temperature_m;
__le32 temperature; /* radio temperature */
__le32 temperature_m; /* for 5000 and up, this is radio voltage */
struct statistics_dbg dbg;
__le32 sleep_time;
__le32 slots_out;
Expand Down
3 changes: 3 additions & 0 deletions drivers/net/wireless/iwlwifi/iwl-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,9 @@ static ssize_t iwl_dbgfs_ucode_rx_stats_read(struct file *file,
accum_ht->agg_mpdu_cnt);
pos += scnprintf(buf + pos, bufsz - pos, "agg_cnt:\t\t%u\t\t\t%u\n",
le32_to_cpu(ht->agg_cnt), accum_ht->agg_cnt);
pos += scnprintf(buf + pos, bufsz - pos, "unsupport_mcs:\t\t%u\t\t\t%u\n",
le32_to_cpu(ht->unsupport_mcs),
accum_ht->unsupport_mcs);

ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos);
kfree(buf);
Expand Down

0 comments on commit f0118a4

Please sign in to comment.