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-agn-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-agn-debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c index 48c023b4ca36..90be033ee269 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c | |||
@@ -58,22 +58,22 @@ ssize_t iwl_ucode_rx_stats_read(struct file *file, char __user *user_buf, | |||
58 | * the last statistics notification from uCode | 58 | * the last statistics notification from uCode |
59 | * might not reflect the current uCode activity | 59 | * might not reflect the current uCode activity |
60 | */ | 60 | */ |
61 | ofdm = &priv->statistics.rx.ofdm; | 61 | ofdm = &priv->_agn.statistics.rx.ofdm; |
62 | cck = &priv->statistics.rx.cck; | 62 | cck = &priv->_agn.statistics.rx.cck; |
63 | general = &priv->statistics.rx.general; | 63 | general = &priv->_agn.statistics.rx.general; |
64 | ht = &priv->statistics.rx.ofdm_ht; | 64 | ht = &priv->_agn.statistics.rx.ofdm_ht; |
65 | accum_ofdm = &priv->accum_statistics.rx.ofdm; | 65 | accum_ofdm = &priv->_agn.accum_statistics.rx.ofdm; |
66 | accum_cck = &priv->accum_statistics.rx.cck; | 66 | accum_cck = &priv->_agn.accum_statistics.rx.cck; |
67 | accum_general = &priv->accum_statistics.rx.general; | 67 | accum_general = &priv->_agn.accum_statistics.rx.general; |
68 | accum_ht = &priv->accum_statistics.rx.ofdm_ht; | 68 | accum_ht = &priv->_agn.accum_statistics.rx.ofdm_ht; |
69 | delta_ofdm = &priv->delta_statistics.rx.ofdm; | 69 | delta_ofdm = &priv->_agn.delta_statistics.rx.ofdm; |
70 | delta_cck = &priv->delta_statistics.rx.cck; | 70 | delta_cck = &priv->_agn.delta_statistics.rx.cck; |
71 | delta_general = &priv->delta_statistics.rx.general; | 71 | delta_general = &priv->_agn.delta_statistics.rx.general; |
72 | delta_ht = &priv->delta_statistics.rx.ofdm_ht; | 72 | delta_ht = &priv->_agn.delta_statistics.rx.ofdm_ht; |
73 | max_ofdm = &priv->max_delta.rx.ofdm; | 73 | max_ofdm = &priv->_agn.max_delta.rx.ofdm; |
74 | max_cck = &priv->max_delta.rx.cck; | 74 | max_cck = &priv->_agn.max_delta.rx.cck; |
75 | max_general = &priv->max_delta.rx.general; | 75 | max_general = &priv->_agn.max_delta.rx.general; |
76 | max_ht = &priv->max_delta.rx.ofdm_ht; | 76 | max_ht = &priv->_agn.max_delta.rx.ofdm_ht; |
77 | 77 | ||
78 | pos += iwl_dbgfs_statistics_flag(priv, buf, bufsz); | 78 | pos += iwl_dbgfs_statistics_flag(priv, buf, bufsz); |
79 | pos += scnprintf(buf + pos, bufsz - pos, "%-32s current" | 79 | pos += scnprintf(buf + pos, bufsz - pos, "%-32s current" |
@@ -539,10 +539,10 @@ ssize_t iwl_ucode_tx_stats_read(struct file *file, | |||
539 | * the last statistics notification from uCode | 539 | * the last statistics notification from uCode |
540 | * might not reflect the current uCode activity | 540 | * might not reflect the current uCode activity |
541 | */ | 541 | */ |
542 | tx = &priv->statistics.tx; | 542 | tx = &priv->_agn.statistics.tx; |
543 | accum_tx = &priv->accum_statistics.tx; | 543 | accum_tx = &priv->_agn.accum_statistics.tx; |
544 | delta_tx = &priv->delta_statistics.tx; | 544 | delta_tx = &priv->_agn.delta_statistics.tx; |
545 | max_tx = &priv->max_delta.tx; | 545 | max_tx = &priv->_agn.max_delta.tx; |
546 | pos += iwl_dbgfs_statistics_flag(priv, buf, bufsz); | 546 | pos += iwl_dbgfs_statistics_flag(priv, buf, bufsz); |
547 | pos += scnprintf(buf + pos, bufsz - pos, "%-32s current" | 547 | pos += scnprintf(buf + pos, bufsz - pos, "%-32s current" |
548 | "acumulative delta max\n", | 548 | "acumulative delta max\n", |
@@ -756,18 +756,18 @@ ssize_t iwl_ucode_general_stats_read(struct file *file, char __user *user_buf, | |||
756 | * the last statistics notification from uCode | 756 | * the last statistics notification from uCode |
757 | * might not reflect the current uCode activity | 757 | * might not reflect the current uCode activity |
758 | */ | 758 | */ |
759 | general = &priv->statistics.general; | 759 | general = &priv->_agn.statistics.general; |
760 | dbg = &priv->statistics.general.dbg; | 760 | dbg = &priv->_agn.statistics.general.dbg; |
761 | div = &priv->statistics.general.div; | 761 | div = &priv->_agn.statistics.general.div; |
762 | accum_general = &priv->accum_statistics.general; | 762 | accum_general = &priv->_agn.accum_statistics.general; |
763 | delta_general = &priv->delta_statistics.general; | 763 | delta_general = &priv->_agn.delta_statistics.general; |
764 | max_general = &priv->max_delta.general; | 764 | max_general = &priv->_agn.max_delta.general; |
765 | accum_dbg = &priv->accum_statistics.general.dbg; | 765 | accum_dbg = &priv->_agn.accum_statistics.general.dbg; |
766 | delta_dbg = &priv->delta_statistics.general.dbg; | 766 | delta_dbg = &priv->_agn.delta_statistics.general.dbg; |
767 | max_dbg = &priv->max_delta.general.dbg; | 767 | max_dbg = &priv->_agn.max_delta.general.dbg; |
768 | accum_div = &priv->accum_statistics.general.div; | 768 | accum_div = &priv->_agn.accum_statistics.general.div; |
769 | delta_div = &priv->delta_statistics.general.div; | 769 | delta_div = &priv->_agn.delta_statistics.general.div; |
770 | max_div = &priv->max_delta.general.div; | 770 | max_div = &priv->_agn.max_delta.general.div; |
771 | pos += iwl_dbgfs_statistics_flag(priv, buf, bufsz); | 771 | pos += iwl_dbgfs_statistics_flag(priv, buf, bufsz); |
772 | pos += scnprintf(buf + pos, bufsz - pos, "%-32s current" | 772 | pos += scnprintf(buf + pos, bufsz - pos, "%-32s current" |
773 | "acumulative delta max\n", | 773 | "acumulative delta max\n", |