aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-12-02 13:34:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-12-02 13:34:17 +0000
commitc74494de8d0d7d31ddb0e79ae48e2c528dbc52cc (patch)
treee9e9a5c8bd89e6b34fb83ad98ec27313b47b0eff /package
parent113554633f419eb1ae12b8beda31625d23943e90 (diff)
downloadupstream-c74494de8d0d7d31ddb0e79ae48e2c528dbc52cc.tar.gz
upstream-c74494de8d0d7d31ddb0e79ae48e2c528dbc52cc.tar.bz2
upstream-c74494de8d0d7d31ddb0e79ae48e2c528dbc52cc.zip
madwifi: fix frame type parsing (fixes stp, see #4205)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13468 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/madwifi/patches/390-frame_type.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/madwifi/patches/390-frame_type.patch b/package/madwifi/patches/390-frame_type.patch
new file mode 100644
index 0000000000..179ee7cfa0
--- /dev/null
+++ b/package/madwifi/patches/390-frame_type.patch
@@ -0,0 +1,13 @@
+--- a/net80211/ieee80211_input.c
++++ b/net80211/ieee80211_input.c
+@@ -4421,7 +4421,9 @@
+ if (memcmp(eth->h_dest, dev->dev_addr, ETH_ALEN))
+ skb->pkt_type = PACKET_OTHERHOST;
+
+- return eth->h_proto;
++ if (ntohs(eth->h_proto) >= 1536)
++ return eth->h_proto;
++ return htons(ETH_P_802_2);
+ }
+ #endif
+