madwifi: handle frame classification properly if eth->h_proto contains the protocol...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 31 May 2009 17:15:09 +0000 (17:15 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 31 May 2009 17:15:09 +0000 (17:15 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16237 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/madwifi/patches/390-frame_type.patch

index 130f3b6..71d658b 100644 (file)
@@ -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);
  }
This page took 0.032852 seconds and 4 git commands to generate.