diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-02-05 22:38:23 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-02-05 22:38:23 +0000 |
commit | cb0133131d4c19ad3164467db337e1e80f465c90 (patch) | |
tree | 27ba2cf8fff6f3467607f87817c5c0bbc05198ef /package/mac80211 | |
parent | de51e40c7ee6406626dbf4f74d04f5f0e61f9f11 (diff) | |
download | master-187ad058-cb0133131d4c19ad3164467db337e1e80f465c90.tar.gz master-187ad058-cb0133131d4c19ad3164467db337e1e80f465c90.tar.bz2 master-187ad058-cb0133131d4c19ad3164467db337e1e80f465c90.zip |
mac80211: when operating as a 4-addr station, do not pick up 4-addr frames meant for other stations, as this would confuse the bridge layer
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25378 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211')
-rw-r--r-- | package/mac80211/patches/580-mac80211_no_promisc_4addr.patch | 12 |
1 files changed, 12 insertions, 0 deletions
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 index 0000000000..f37590900f --- /dev/null +++ b/package/mac80211/patches/580-mac80211_no_promisc_4addr.patch @@ -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; + } |