Skip to content

Commit 2b9ccd4

Browse files
committed
mac80211: fix AP-mode frame matching
In AP mode, ignore frames with mis-matched BSSID that aren't multicast or sent to the correct destination. This fixes reporting public action frames to userspace multiple times on multiple virtual AP interfaces. Cc: stable@vger.kernel.org Reported-by: Jouni Malinen <j@w1.fi> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent a838490 commit 2b9ccd4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎net/mac80211/rx.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3036,6 +3036,9 @@ static int prepare_for_handlers(struct ieee80211_rx_data *rx,
30363036
* and location updates. Note that mac80211
30373037
* itself never looks at these frames.
30383038
*/
3039+
if (!multicast &&
3040+
!ether_addr_equal(sdata->vif.addr, hdr->addr1))
3041+
return 0;
30393042
if (ieee80211_is_public_action(hdr, skb->len))
30403043
return 1;
30413044
if (!ieee80211_is_beacon(hdr->frame_control))

0 commit comments

Comments
 (0)