aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-rx.c
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2009-08-07 18:41:40 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-14 09:13:47 -0400
commit22fdf3c9e19dce6d66bcfdbed547a5aa52b89933 (patch)
treed2f0cf8e6f4f133ad08036d6ee01978fc0d51803 /drivers/net/wireless/iwlwifi/iwl-rx.c
parent20594eb0daa67f7a0cc19d74a1bafceb1bb09f4a (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-rx.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-rx.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-rx.c
index 55860037f98a..43b2fce4cbf0 100644
--- a/drivers/net/wireless/iwlwifi/iwl-rx.c
+++ b/drivers/net/wireless/iwlwifi/iwl-rx.c
@@ -745,14 +745,6 @@ static void iwl_dbg_report_frame(struct iwl_priv *priv,
745} 745}
746#endif 746#endif
747 747
748static void iwl_update_rx_stats(struct iwl_priv *priv, u16 fc, u16 len)
749{
750 /* 0 - mgmt, 1 - cnt, 2 - data */
751 int idx = (fc & IEEE80211_FCTL_FTYPE) >> 2;
752 priv->rx_stats[idx].cnt++;
753 priv->rx_stats[idx].bytes += len;
754}
755
756/* 748/*
757 * returns non-zero if packet should be dropped 749 * returns non-zero if packet should be dropped
758 */ 750 */
@@ -930,7 +922,7 @@ static void iwl_pass_packet_to_mac80211(struct iwl_priv *priv,
930 iwl_set_decrypted_flag(priv, hdr, ampdu_status, stats)) 922 iwl_set_decrypted_flag(priv, hdr, ampdu_status, stats))
931 return; 923 return;
932 924
933 iwl_update_rx_stats(priv, le16_to_cpu(hdr->frame_control), len); 925 iwl_update_stats(priv, false, hdr->frame_control, len);
934 memcpy(IEEE80211_SKB_RXCB(rxb->skb), stats, sizeof(*stats)); 926 memcpy(IEEE80211_SKB_RXCB(rxb->skb), stats, sizeof(*stats));
935 ieee80211_rx_irqsafe(priv->hw, rxb->skb); 927 ieee80211_rx_irqsafe(priv->hw, rxb->skb);
936 priv->alloc_rxb_skb--; 928 priv->alloc_rxb_skb--;