mac80211: when operating as a 4-addr station, do not pick up 4-addr frames meant...
[openwrt.git] / package / mac80211 / patches / 580-mac80211_no_promisc_4addr.patch
1 --- a/net/mac80211/rx.c
2 +++ b/net/mac80211/rx.c
3 @@ -2609,7 +2609,8 @@ static int prepare_for_handlers(struct i
4 return 0;
5 if (!multicast &&
6 compare_ether_addr(sdata->vif.addr, hdr->addr1) != 0) {
7 - if (!(sdata->dev->flags & IFF_PROMISC))
8 + if (!(sdata->dev->flags & IFF_PROMISC) ||
9 + sdata->u.mgd.use_4addr)
10 return 0;
11 status->rx_flags &= ~IEEE80211_RX_RA_MATCH;
12 }
This page took 0.042599 seconds and 5 git commands to generate.