mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 22:06:31 +02:00
madwifi: fix frame type parsing (fixes stp, see #4205)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13468 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
bb120b7871
commit
2c84fd9f96
13
package/madwifi/patches/390-frame_type.patch
Normal file
13
package/madwifi/patches/390-frame_type.patch
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user