From 2c84fd9f967b0750a609a562e24993b66ca230b8 Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 2 Dec 2008 13:34:17 +0000 Subject: [PATCH] madwifi: fix frame type parsing (fixes stp, see #4205) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13468 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/madwifi/patches/390-frame_type.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 package/madwifi/patches/390-frame_type.patch diff --git a/package/madwifi/patches/390-frame_type.patch b/package/madwifi/patches/390-frame_type.patch new file mode 100644 index 000000000..179ee7cfa --- /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 + -- 2.35.1