aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-05-31 17:15:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-05-31 17:15:09 +0000
commit83db58db639d38140c27fb58fd110963e987fda3 (patch)
tree53359e43cfbcd3be628b3a8e4482869358be9294 /package/madwifi
parentc360bce6a47b19a4fe8eb94d8381e779919ee0f6 (diff)
downloadmaster-187ad058-83db58db639d38140c27fb58fd110963e987fda3.tar.gz
master-187ad058-83db58db639d38140c27fb58fd110963e987fda3.tar.bz2
master-187ad058-83db58db639d38140c27fb58fd110963e987fda3.zip
madwifi: handle frame classification properly if eth->h_proto contains the protocol number directly (without offset)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16237 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi')
-rw-r--r--package/madwifi/patches/390-frame_type.patch2
1 files changed, 1 insertions, 1 deletions
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);
}