aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches/478-remove_vlan_code.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-29 12:52:16 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-03-29 12:52:16 +0000
commit04d8267cf05b3feb43c487c2a315197263c0ef81 (patch)
treeb97cb408922649b9c5d8df0dea0d30131f121337 /package/madwifi/patches/478-remove_vlan_code.patch
parente83f30306c167b63011fed3f0e611c1170444ad2 (diff)
downloadupstream-04d8267cf05b3feb43c487c2a315197263c0ef81.tar.gz
upstream-04d8267cf05b3feb43c487c2a315197263c0ef81.tar.bz2
upstream-04d8267cf05b3feb43c487c2a315197263c0ef81.zip
madwifi: fix compile issues with linux 3.1/3.2
SVN-Revision: 31138
Diffstat (limited to 'package/madwifi/patches/478-remove_vlan_code.patch')
-rw-r--r--package/madwifi/patches/478-remove_vlan_code.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/madwifi/patches/478-remove_vlan_code.patch b/package/madwifi/patches/478-remove_vlan_code.patch
new file mode 100644
index 0000000000..9ceda4aa0a
--- /dev/null
+++ b/package/madwifi/patches/478-remove_vlan_code.patch
@@ -0,0 +1,21 @@
+--- a/net80211/ieee80211_input.c
++++ b/net80211/ieee80211_input.c
+@@ -1223,6 +1223,7 @@ ieee80211_deliver_data(struct ieee80211_
+ #endif
+ vap->iv_devstats.rx_packets++;
+ vap->iv_devstats.rx_bytes += skb->len;
++#if IEEE80211_VLAN_TAG_USED
+ if (ni->ni_vlan != 0 && vap->iv_vlgrp != NULL) {
+ /* attach vlan tag */
+ struct ieee80211_node *ni_tmp = SKB_CB(skb)->ni;
+@@ -1236,7 +1237,9 @@ ieee80211_deliver_data(struct ieee80211_
+ vap->iv_devstats.rx_dropped++;
+ }
+ skb = NULL; /* SKB is no longer ours */
+- } else {
++ } else
++#endif
++ {
+ struct ieee80211_node *ni_tmp = SKB_CB(skb)->ni;
+ if (netif_receive_skb(skb) == NET_RX_DROP) {
+ /* If netif_receive_skb dropped the packet because