diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-08-07 18:41:40 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-14 09:13:47 -0400 |
commit | 22fdf3c9e19dce6d66bcfdbed547a5aa52b89933 (patch) | |
tree | d2f0cf8e6f4f133ad08036d6ee01978fc0d51803 /drivers/net/wireless/iwlwifi/iwl-led.c | |
parent | 20594eb0daa67f7a0cc19d74a1bafceb1bb09f4a (diff) |
iwlwifi: Traffic type and counter for debugFs
Break down the traffic type and counter for both Tx and Rx.
Enhance the tx_statistics and rx_statistics debugfs function and move
to /sys/kernel/debug/ieee80211/phy0/iwlagn/debug directory to help
better debugging both driver and uCode related problems.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-led.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-led.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-led.c b/drivers/net/wireless/iwlwifi/iwl-led.c index 3d61cb43151c..f420c99e7240 100644 --- a/drivers/net/wireless/iwlwifi/iwl-led.c +++ b/drivers/net/wireless/iwlwifi/iwl-led.c | |||
@@ -272,7 +272,8 @@ static int iwl_get_blink_rate(struct iwl_priv *priv) | |||
272 | /* count both tx and rx traffic to be able to | 272 | /* count both tx and rx traffic to be able to |
273 | * handle traffic in either direction | 273 | * handle traffic in either direction |
274 | */ | 274 | */ |
275 | u64 current_tpt = priv->tx_stats[2].bytes + priv->rx_stats[2].bytes; | 275 | u64 current_tpt = priv->tx_stats.data_bytes + |
276 | priv->rx_stats.data_bytes; | ||
276 | s64 tpt = current_tpt - priv->led_tpt; | 277 | s64 tpt = current_tpt - priv->led_tpt; |
277 | 278 | ||
278 | if (tpt < 0) /* wraparound */ | 279 | if (tpt < 0) /* wraparound */ |