1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-07 16:09:50 +03:00
openwrt-xburst/package/madwifi/patches/390-frame_type.patch
nbd cbfd6ccc24 madwifi: handle frame classification properly if eth->h_proto contains the protocol number directly (without offset)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16237 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-31 17:15:09 +00:00

14 lines
378 B
Diff

--- a/net80211/ieee80211_input.c
+++ b/net80211/ieee80211_input.c
@@ -4440,7 +4440,9 @@ ath_eth_type_trans(struct sk_buff *skb,
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) || (ntohs(eth->h_proto) < 38))
+ return eth->h_proto;
+ return htons(ETH_P_802_2);
}
#endif