From d4181e7cf5fda208511056c87a0085e110d0b56c Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 5 Feb 2011 22:51:11 +0000 Subject: [PATCH] mac80211: backport wds station fix from r25378 git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@25379 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches/580-mac80211_no_promisc_4addr.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/mac80211/patches/580-mac80211_no_promisc_4addr.patch 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 000000000..f37590900 --- /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; + }