image.mk: fix emitting profiles for targets that have no subtargets
[openwrt/staging/yousong.git] / package / kernel / mac80211 / patches / 338-mac80211-Fix-Public-Action-frame-RX-in-AP-mode.patch
1 From: Jouni Malinen <jouni@qca.qualcomm.com>
2 Date: Tue, 1 Mar 2016 00:29:00 +0200
3 Subject: [PATCH] mac80211: Fix Public Action frame RX in AP mode
4
5 Public Action frames use special rules for how the BSSID field (Address
6 3) is set. A wildcard BSSID is used in cases where the transmitter and
7 recipient are not members of the same BSS. As such, we need to accept
8 Public Action frames with wildcard BSSID.
9
10 Commit db8e17324553 ("mac80211: ignore frames between TDLS peers when
11 operating as AP") added a rule that drops Action frames to TDLS-peers
12 based on an Action frame having different DA (Address 1) and BSSID
13 (Address 3) values. This is not correct since it misses the possibility
14 of BSSID being a wildcard BSSID in which case the Address 1 would not
15 necessarily match.
16
17 Fix this by allowing mac80211 to accept wildcard BSSID in an Action
18 frame when in AP mode.
19
20 Fixes: db8e17324553 ("mac80211: ignore frames between TDLS peers when operating as AP")
21 Cc: stable@vger.kernel.org
22 Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
23 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
24 ---
25
26 --- a/net/mac80211/rx.c
27 +++ b/net/mac80211/rx.c
28 @@ -3374,6 +3374,7 @@ static bool ieee80211_accept_frame(struc
29 return false;
30 /* ignore action frames to TDLS-peers */
31 if (ieee80211_is_action(hdr->frame_control) &&
32 + !is_broadcast_ether_addr(bssid) &&
33 !ether_addr_equal(bssid, hdr->addr1))
34 return false;
35 }