Add LLC input frames detection so BPDUs are treated correctly. More
info in: http://madwifi-project.org/ticket/839

This patch was also attached to ticket #4205.

Signed-off-by: David Manso <[EMAIL PROTECTED]>

Index: package/madwifi/patches/999-802_2_frame.patch
===================================================================
--- package/madwifi/patches/999-802_2_frame.patch       (revision: 0)
+++ package/madwifi/patches/999-802_2_frame.patch       (revision: 0)
@@ -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
+
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to