[adm8668] remove unused variables and defines
[openwrt.git] / package / madwifi / patches / 461-rx_stats_count_fix.patch
1 --- a/net80211/ieee80211_input.c
2 +++ b/net80211/ieee80211_input.c
3 @@ -202,7 +202,6 @@ ieee80211_input(struct ieee80211vap * va
4 struct ieee80211com *ic;
5 struct net_device *dev;
6 struct ieee80211_node *ni_wds = NULL;
7 - struct net_device_stats *stats;
8 struct ieee80211_frame *wh;
9 struct ieee80211_key *key;
10 struct ether_header *eh;
11 @@ -685,12 +684,6 @@ ieee80211_input(struct ieee80211vap * va
12 if (! accept_data_frame(vap, ni, key, skb, eh))
13 goto out;
14
15 - if (ni->ni_subif && ((eh)->ether_type != __constant_htons(ETHERTYPE_PAE)))
16 - stats = &ni->ni_subif->iv_devstats;
17 - else
18 - stats = &vap->iv_devstats;
19 - stats->rx_packets++;
20 - stats->rx_bytes += skb->len;
21 IEEE80211_NODE_STAT(ni, rx_data);
22 IEEE80211_NODE_STAT_ADD(ni, rx_bytes, skb->len);
23 ic->ic_lastdata = jiffies;
This page took 0.039899 seconds and 5 git commands to generate.