From: Felix Fietkau Date: Sun, 31 May 2009 17:15:09 +0000 (+0000) Subject: madwifi: handle frame classification properly if eth->h_proto contains the protocol... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=01fa49fcaf7f76d875b9e061b2c3dd439e946ac1;p=openwrt%2Fsvn-archive%2Farchive.git madwifi: handle frame classification properly if eth->h_proto contains the protocol number directly (without offset) SVN-Revision: 16237 --- diff --git a/package/madwifi/patches/390-frame_type.patch b/package/madwifi/patches/390-frame_type.patch index 130f3b6d61..71d658b4e5 100644 --- a/package/madwifi/patches/390-frame_type.patch +++ b/package/madwifi/patches/390-frame_type.patch @@ -5,7 +5,7 @@ skb->pkt_type = PACKET_OTHERHOST; - return eth->h_proto; -+ if (ntohs(eth->h_proto) >= 1536) ++ if ((ntohs(eth->h_proto) >= 1536) || (ntohs(eth->h_proto) < 38)) + return eth->h_proto; + return htons(ETH_P_802_2); }