X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=package%2Fmadwifi%2Fpatches%2F390-frame_type.patch;fp=package%2Fmadwifi%2Fpatches%2F390-frame_type.patch;h=179ee7cfa0f13ee120ba7b073821f2a126b566ed;hb=2c84fd9f967b0750a609a562e24993b66ca230b8;hp=0000000000000000000000000000000000000000;hpb=bb120b78712897aca348c570430f22246edebf27;p=openwrt.git diff --git a/package/madwifi/patches/390-frame_type.patch b/package/madwifi/patches/390-frame_type.patch new file mode 100644 index 0000000000..179ee7cfa0 --- /dev/null +++ b/package/madwifi/patches/390-frame_type.patch @@ -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 +