diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-06-14 20:09:54 -0400 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-06-21 13:47:25 -0400 |
commit | f3aebeeebc9a18aa548f8c1da18f6cda28d8b732 (patch) | |
tree | 0943c87306cba89b40d6b7ad88568b47a871bbe4 /drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c | |
parent | 278fc73c0c6014bc2f55bce898bdeaa322bf4aba (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-agn-debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c index 3d08dc8af143..75d6bfcbc607 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c | |||
@@ -33,17 +33,17 @@ static int iwl_statistics_flag(struct iwl_priv *priv, char *buf, int bufsz) | |||
33 | int p = 0; | 33 | int p = 0; |
34 | 34 | ||
35 | p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", | 35 | p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", |
36 | le32_to_cpu(priv->statistics.flag)); | 36 | le32_to_cpu(priv->_agn.statistics.flag)); |
37 | if (le32_to_cpu(priv->statistics.flag) & | 37 | if (le32_to_cpu(priv->_agn.statistics.flag) & |
38 | UCODE_STATISTICS_CLEAR_MSK) | 38 | UCODE_STATISTICS_CLEAR_MSK) |
39 | p += scnprintf(buf + p, bufsz - p, | 39 | p += scnprintf(buf + p, bufsz - p, |
40 | "\tStatistics have been cleared\n"); | 40 | "\tStatistics have been cleared\n"); |
41 | p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", | 41 | p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", |
42 | (le32_to_cpu(priv->statistics.flag) & | 42 | (le32_to_cpu(priv->_agn.statistics.flag) & |
43 | UCODE_STATISTICS_FREQUENCY_MSK) | 43 | UCODE_STATISTICS_FREQUENCY_MSK) |
44 | ? "2.4 GHz" : "5.2 GHz"); | 44 | ? "2.4 GHz" : "5.2 GHz"); |
45 | p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", | 45 | p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", |
46 | (le32_to_cpu(priv->statistics.flag) & | 46 | (le32_to_cpu(priv->_agn.statistics.flag) & |
47 | UCODE_STATISTICS_NARROW_BAND_MSK) | 47 | UCODE_STATISTICS_NARROW_BAND_MSK) |
48 | ? "enabled" : "disabled"); | 48 | ? "enabled" : "disabled"); |
49 | return p; | 49 | return p; |
@@ -79,22 +79,22 @@ ssize_t iwl_ucode_rx_stats_read(struct file *file, char __user *user_buf, | |||
79 | * the last statistics notification from uCode | 79 | * the last statistics notification from uCode |
80 | * might not reflect the current uCode activity | 80 | * might not reflect the current uCode activity |
81 | */ | 81 | */ |
82 | ofdm = &priv->statistics.rx.ofdm; | 82 | ofdm = &priv->_agn.statistics.rx.ofdm; |
83 | cck = &priv->statistics.rx.cck; | 83 | cck = &priv->_agn.statistics.rx.cck; |
84 | general = &priv->statistics.rx.general; | 84 | general = &priv->_agn.statistics.rx.general; |
85 | ht = &priv->statistics.rx.ofdm_ht; | 85 | ht = &priv->_agn.statistics.rx.ofdm_ht; |
86 | accum_ofdm = &priv->accum_statistics.rx.ofdm; | 86 | accum_ofdm = &priv->_agn.accum_statistics.rx.ofdm; |
87 | accum_cck = &priv->accum_statistics.rx.cck; | 87 | accum_cck = &priv->_agn.accum_statistics.rx.cck; |
88 | accum_general = &priv->accum_statistics.rx.general; | 88 | accum_general = &priv->_agn.accum_statistics.rx.general; |
89 | accum_ht = &priv->accum_statistics.rx.ofdm_ht; | 89 | accum_ht = &priv->_agn.accum_statistics.rx.ofdm_ht; |
90 | delta_ofdm = &priv->delta_statistics.rx.ofdm; | 90 | delta_ofdm = &priv->_agn.delta_statistics.rx.ofdm; |
91 | delta_cck = &priv->delta_statistics.rx.cck; | 91 | delta_cck = &priv->_agn.delta_statistics.rx.cck; |
92 | delta_general = &priv->delta_statistics.rx.general; | 92 | delta_general = &priv->_agn.delta_statistics.rx.general; |
93 | delta_ht = &priv->delta_statistics.rx.ofdm_ht; | 93 | delta_ht = &priv->_agn.delta_statistics.rx.ofdm_ht; |
94 | max_ofdm = &priv->max_delta.rx.ofdm; | 94 | max_ofdm = &priv->_agn.max_delta.rx.ofdm; |
95 | max_cck = &priv->max_delta.rx.cck; | 95 | max_cck = &priv->_agn.max_delta.rx.cck; |
96 | max_general = &priv->max_delta.rx.general; | 96 | max_general = &priv->_agn.max_delta.rx.general; |
97 | max_ht = &priv->max_delta.rx.ofdm_ht; | 97 | max_ht = &priv->_agn.max_delta.rx.ofdm_ht; |
98 | 98 | ||
99 | pos += iwl_statistics_flag(priv, buf, bufsz); | 99 | pos += iwl_statistics_flag(priv, buf, bufsz); |
100 | pos += scnprintf(buf + pos, bufsz - pos, "%-32s current" | 100 | pos += scnprintf(buf + pos, bufsz - pos, "%-32s current" |
@@ -560,10 +560,10 @@ ssize_t iwl_ucode_tx_stats_read(struct file *file, | |||
560 | * the last statistics notification from uCode | 560 | * the last statistics notification from uCode |
561 | * might not reflect the current uCode activity | 561 | * might not reflect the current uCode activity |
562 | */ | 562 | */ |
563 | tx = &priv->statistics.tx; | 563 | tx = &priv->_agn.statistics.tx; |
564 | accum_tx = &priv->accum_statistics.tx; | 564 | accum_tx = &priv->_agn.accum_statistics.tx; |
565 | delta_tx = &priv->delta_statistics.tx; | 565 | delta_tx = &priv->_agn.delta_statistics.tx; |
566 | max_tx = &priv->max_delta.tx; | 566 | max_tx = &priv->_agn.max_delta.tx; |
567 | pos += iwl_statistics_flag(priv, buf, bufsz); | 567 | pos += iwl_statistics_flag(priv, buf, bufsz); |
568 | pos += scnprintf(buf + pos, bufsz - pos, "%-32s current" | 568 | pos += scnprintf(buf + pos, bufsz - pos, "%-32s current" |
569 | "acumulative delta max\n", | 569 | "acumulative delta max\n", |
@@ -777,18 +777,18 @@ ssize_t iwl_ucode_general_stats_read(struct file *file, char __user *user_buf, | |||
777 | * the last statistics notification from uCode | 777 | * the last statistics notification from uCode |
778 | * might not reflect the current uCode activity | 778 | * might not reflect the current uCode activity |
779 | */ | 779 | */ |
780 | general = &priv->statistics.general; | 780 | general = &priv->_agn.statistics.general; |
781 | dbg = &priv->statistics.general.dbg; | 781 | dbg = &priv->_agn.statistics.general.dbg; |
782 | div = &priv->statistics.general.div; | 782 | div = &priv->_agn.statistics.general.div; |
783 | accum_general = &priv->accum_statistics.general; | 783 | accum_general = &priv->_agn.accum_statistics.general; |
784 | delta_general = &priv->delta_statistics.general; | 784 | delta_general = &priv->_agn.delta_statistics.general; |
785 | max_general = &priv->max_delta.general; | 785 | max_general = &priv->_agn.max_delta.general; |
786 | accum_dbg = &priv->accum_statistics.general.dbg; | 786 | accum_dbg = &priv->_agn.accum_statistics.general.dbg; |
787 | delta_dbg = &priv->delta_statistics.general.dbg; | 787 | delta_dbg = &priv->_agn.delta_statistics.general.dbg; |
788 | max_dbg = &priv->max_delta.general.dbg; | 788 | max_dbg = &priv->_agn.max_delta.general.dbg; |
789 | accum_div = &priv->accum_statistics.general.div; | 789 | accum_div = &priv->_agn.accum_statistics.general.div; |
790 | delta_div = &priv->delta_statistics.general.div; | 790 | delta_div = &priv->_agn.delta_statistics.general.div; |
791 | max_div = &priv->max_delta.general.div; | 791 | max_div = &priv->_agn.max_delta.general.div; |
792 | pos += iwl_statistics_flag(priv, buf, bufsz); | 792 | pos += iwl_statistics_flag(priv, buf, bufsz); |
793 | pos += scnprintf(buf + pos, bufsz - pos, "%-32s current" | 793 | pos += scnprintf(buf + pos, bufsz - pos, "%-32s current" |
794 | "acumulative delta max\n", | 794 | "acumulative delta max\n", |