diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-04-30 17:21:48 -0400 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-05-13 13:42:45 -0400 |
commit | a2064b7a4a22d118087898e4308670da7ac07911 (patch) | |
tree | 1951ff14c67fa8a34fa28ca0aa112a6e8a777c51 /drivers/net/wireless/iwlwifi/iwl-debugfs.c | |
parent | 0af8bcae6f44aa440e51b1925635fb835cd68058 (diff) |
iwlwifi: move _agn statistics related structure
agn and 3945 has different statistics_notif data structure; since 3945
has it statistics_notif data structure inside the _3945 portion of
iwl_priv, it make sense to move the agn statistics_notif into _agn portion.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debugfs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index 4d6de2dfedd1..c248373b89e9 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
@@ -105,16 +105,17 @@ int iwl_dbgfs_statistics_flag(struct iwl_priv *priv, char *buf, int bufsz) | |||
105 | int p = 0; | 105 | int p = 0; |
106 | 106 | ||
107 | p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", | 107 | p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", |
108 | le32_to_cpu(priv->statistics.flag)); | 108 | le32_to_cpu(priv->_agn.statistics.flag)); |
109 | if (le32_to_cpu(priv->statistics.flag) & UCODE_STATISTICS_CLEAR_MSK) | 109 | if (le32_to_cpu(priv->_agn.statistics.flag) & |
110 | UCODE_STATISTICS_CLEAR_MSK) | ||
110 | p += scnprintf(buf + p, bufsz - p, | 111 | p += scnprintf(buf + p, bufsz - p, |
111 | "\tStatistics have been cleared\n"); | 112 | "\tStatistics have been cleared\n"); |
112 | p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", | 113 | p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", |
113 | (le32_to_cpu(priv->statistics.flag) & | 114 | (le32_to_cpu(priv->_agn.statistics.flag) & |
114 | UCODE_STATISTICS_FREQUENCY_MSK) | 115 | UCODE_STATISTICS_FREQUENCY_MSK) |
115 | ? "2.4 GHz" : "5.2 GHz"); | 116 | ? "2.4 GHz" : "5.2 GHz"); |
116 | p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", | 117 | p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", |
117 | (le32_to_cpu(priv->statistics.flag) & | 118 | (le32_to_cpu(priv->_agn.statistics.flag) & |
118 | UCODE_STATISTICS_NARROW_BAND_MSK) | 119 | UCODE_STATISTICS_NARROW_BAND_MSK) |
119 | ? "enabled" : "disabled"); | 120 | ? "enabled" : "disabled"); |
120 | return p; | 121 | return p; |