diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-12-02 13:34:17 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-12-02 13:34:17 +0000 |
commit | a3b5071341ed13ca44c316b5fd0b7bd1634b5eb5 (patch) | |
tree | 06f40be340b03534c4819b155c1a01c6ed8de0cc /package/madwifi/patches | |
parent | 5e122b54bc463e3873f01f1038d5aba4d1c4f457 (diff) | |
download | mtk-20170518-a3b5071341ed13ca44c316b5fd0b7bd1634b5eb5.zip mtk-20170518-a3b5071341ed13ca44c316b5fd0b7bd1634b5eb5.tar.gz mtk-20170518-a3b5071341ed13ca44c316b5fd0b7bd1634b5eb5.tar.bz2 |
madwifi: fix frame type parsing (fixes stp, see #4205)
SVN-Revision: 13468
Diffstat (limited to 'package/madwifi/patches')
-rw-r--r-- | package/madwifi/patches/390-frame_type.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/package/madwifi/patches/390-frame_type.patch b/package/madwifi/patches/390-frame_type.patch new file mode 100644 index 0000000..179ee7c --- /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 + |