1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[package] madwifi: Fix RX packet and byte count, refresh patches (#6404)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20434 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
acinonyx
2010-03-25 19:41:40 +00:00
parent f4fc288059
commit cc608bb076
2 changed files with 47 additions and 36 deletions

View File

@@ -0,0 +1,23 @@
--- a/net80211/ieee80211_input.c
+++ b/net80211/ieee80211_input.c
@@ -202,7 +202,6 @@ ieee80211_input(struct ieee80211vap * va
struct ieee80211com *ic;
struct net_device *dev;
struct ieee80211_node *ni_wds = NULL;
- struct net_device_stats *stats;
struct ieee80211_frame *wh;
struct ieee80211_key *key;
struct ether_header *eh;
@@ -685,12 +684,6 @@ ieee80211_input(struct ieee80211vap * va
if (! accept_data_frame(vap, ni, key, skb, eh))
goto out;
- if (ni->ni_subif && ((eh)->ether_type != __constant_htons(ETHERTYPE_PAE)))
- stats = &ni->ni_subif->iv_devstats;
- else
- stats = &vap->iv_devstats;
- stats->rx_packets++;
- stats->rx_bytes += skb->len;
IEEE80211_NODE_STAT(ni, rx_data);
IEEE80211_NODE_STAT_ADD(ni, rx_bytes, skb->len);
ic->ic_lastdata = jiffies;