1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-08-22 16:54:37 +03:00
openwrt-xburst/package/madwifi/patches/390-frame_type.patch

14 lines
303 B
Diff
Raw Normal View History

--- 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