Skip to content
Snippets Groups Projects
Commit a3b50713 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

madwifi: fix frame type parsing (fixes stp, see #4205)

SVN-Revision: 13468
parent 5e122b54
No related branches found
No related tags found
No related merge requests found
--- 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment