mac80211: when operating as a 4-addr station, do not pick up 4-addr frames meant...
authorFelix Fietkau <nbd@openwrt.org>
Sat, 5 Feb 2011 22:38:23 +0000 (22:38 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 5 Feb 2011 22:38:23 +0000 (22:38 +0000)
SVN-Revision: 25378

package/mac80211/patches/580-mac80211_no_promisc_4addr.patch [new file with mode: 0644]

diff --git a/package/mac80211/patches/580-mac80211_no_promisc_4addr.patch b/package/mac80211/patches/580-mac80211_no_promisc_4addr.patch
new file mode 100644 (file)
index 0000000..f375909
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/net/mac80211/rx.c
++++ b/net/mac80211/rx.c
+@@ -2609,7 +2609,8 @@ static int prepare_for_handlers(struct i
+                       return 0;
+               if (!multicast &&
+                   compare_ether_addr(sdata->vif.addr, hdr->addr1) != 0) {
+-                      if (!(sdata->dev->flags & IFF_PROMISC))
++                      if (!(sdata->dev->flags & IFF_PROMISC) ||
++                          sdata->u.mgd.use_4addr)
+                               return 0;
+                       status->rx_flags &= ~IEEE80211_RX_RA_MATCH;
+               }