summaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches/390-frame_type.patch
blob: 71d658b4e54f2f3785ef78f5b1266f32e3b57935 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- 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