diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-06-03 13:55:37 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-03 13:55:37 -0400 |
commit | 2daf6c157500b832687f675e323879e3a4c3fe27 (patch) | |
tree | fea2e19e1c4c7d24cdf48c8bf32e30d5b26cd859 /drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c | |
parent | 6e387aa420bb8cd2bde522352c7930a1bfc24b0c (diff) |
Revert "iwlwifi: move _agn statistics related structure"
This reverts commit a2064b7a4a22d118087898e4308670da7ac07911.
when CONFIG_IWLAGN=n:
drivers/net/wireless/iwlwifi/iwl-rx.c:254: error: 'struct iwl_priv' has no member named '_agn'
drivers/net/wireless/iwlwifi/iwl-rx.c:303: error: 'struct iwl_priv' has no member named '_agn'
drivers/net/wireless/iwlwifi/iwl-rx.c:304: error: 'struct iwl_priv' has no member named '_agn'
drivers/net/wireless/iwlwifi/iwl-rx.c:305: error: 'struct iwl_priv' has no member named '_agn'
drivers/net/wireless/iwlwifi/iwl-rx.c:306: error: 'struct iwl_priv' has no member named '_agn'
and many more.
Conflicts:
drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c
drivers/net/wireless/iwlwifi/iwl-debugfs.c
drivers/net/wireless/iwlwifi/iwl-dev.h
drivers/net/wireless/iwlwifi/iwl-rx.c
Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.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 75d6bfcbc607..3d08dc8af143 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->_agn.statistics.flag)); | 36 | le32_to_cpu(priv->statistics.flag)); |
37 | if (le32_to_cpu(priv->_agn.statistics.flag) & | 37 | if (le32_to_cpu(priv->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->_agn.statistics.flag) & | 42 | (le32_to_cpu(priv->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->_agn.statistics.flag) & | 46 | (le32_to_cpu(priv->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->_agn.statistics.rx.ofdm; | 82 | ofdm = &priv->statistics.rx.ofdm; |
83 | cck = &priv->_agn.statistics.rx.cck; | 83 | cck = &priv->statistics.rx.cck; |
84 | general = &priv->_agn.statistics.rx.general; | 84 | general = &priv->statistics.rx.general; |
85 | ht = &priv->_agn.statistics.rx.ofdm_ht; | 85 | ht = &priv->statistics.rx.ofdm_ht; |
86 | accum_ofdm = &priv->_agn.accum_statistics.rx.ofdm; | 86 | accum_ofdm = &priv->accum_statistics.rx.ofdm; |
87 | accum_cck = &priv->_agn.accum_statistics.rx.cck; | 87 | accum_cck = &priv->accum_statistics.rx.cck; |
88 | accum_general = &priv->_agn.accum_statistics.rx.general; | 88 | accum_general = &priv->accum_statistics.rx.general; |
89 | accum_ht = &priv->_agn.accum_statistics.rx.ofdm_ht; | 89 | accum_ht = &priv->accum_statistics.rx.ofdm_ht; |
90 | delta_ofdm = &priv->_agn.delta_statistics.rx.ofdm; | 90 | delta_ofdm = &priv->delta_statistics.rx.ofdm; |
91 | delta_cck = &priv->_agn.delta_statistics.rx.cck; | 91 | delta_cck = &priv->delta_statistics.rx.cck; |
92 | delta_general = &priv->_agn.delta_statistics.rx.general; | 92 | delta_general = &priv->delta_statistics.rx.general; |
93 | delta_ht = &priv->_agn.delta_statistics.rx.ofdm_ht; | 93 | delta_ht = &priv->delta_statistics.rx.ofdm_ht; |
94 | max_ofdm = &priv->_agn.max_delta.rx.ofdm; | 94 | max_ofdm = &priv->max_delta.rx.ofdm; |
95 | max_cck = &priv->_agn.max_delta.rx.cck; | 95 | max_cck = &priv->max_delta.rx.cck; |
96 | max_general = &priv->_agn.max_delta.rx.general; | 96 | max_general = &priv->max_delta.rx.general; |
97 | max_ht = &priv->_agn.max_delta.rx.ofdm_ht; | 97 | max_ht = &priv->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->_agn.statistics.tx; | 563 | tx = &priv->statistics.tx; |
564 | accum_tx = &priv->_agn.accum_statistics.tx; | 564 | accum_tx = &priv->accum_statistics.tx; |
565 | delta_tx = &priv->_agn.delta_statistics.tx; | 565 | delta_tx = &priv->delta_statistics.tx; |
566 | max_tx = &priv->_agn.max_delta.tx; | 566 | max_tx = &priv->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->_agn.statistics.general; | 780 | general = &priv->statistics.general; |
781 | dbg = &priv->_agn.statistics.general.dbg; | 781 | dbg = &priv->statistics.general.dbg; |
782 | div = &priv->_agn.statistics.general.div; | 782 | div = &priv->statistics.general.div; |
783 | accum_general = &priv->_agn.accum_statistics.general; | 783 | accum_general = &priv->accum_statistics.general; |
784 | delta_general = &priv->_agn.delta_statistics.general; | 784 | delta_general = &priv->delta_statistics.general; |
785 | max_general = &priv->_agn.max_delta.general; | 785 | max_general = &priv->max_delta.general; |
786 | accum_dbg = &priv->_agn.accum_statistics.general.dbg; | 786 | accum_dbg = &priv->accum_statistics.general.dbg; |
787 | delta_dbg = &priv->_agn.delta_statistics.general.dbg; | 787 | delta_dbg = &priv->delta_statistics.general.dbg; |
788 | max_dbg = &priv->_agn.max_delta.general.dbg; | 788 | max_dbg = &priv->max_delta.general.dbg; |
789 | accum_div = &priv->_agn.accum_statistics.general.div; | 789 | accum_div = &priv->accum_statistics.general.div; |
790 | delta_div = &priv->_agn.delta_statistics.general.div; | 790 | delta_div = &priv->delta_statistics.general.div; |
791 | max_div = &priv->_agn.max_delta.general.div; | 791 | max_div = &priv->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", |