]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Fix Public Action frame RX in AP mode
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 29 Feb 2016 22:29:00 +0000 (00:29 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 1 Mar 2016 14:45:04 +0000 (15:45 +0100)
commit4a48d54a5b3299a4105b7ff93de2e59f35fe21e2
tree41d6b7733340af4a7c7da87ca17f131abede732c
parent5601e419716c4567420ae13a0c360435fc8a38fc
mac80211: Fix Public Action frame RX in AP mode

Public Action frames use special rules for how the BSSID field (Address
3) is set. A wildcard BSSID is used in cases where the transmitter and
recipient are not members of the same BSS. As such, we need to accept
Public Action frames with wildcard BSSID.

Commit b396076a300d ("mac80211: ignore frames between TDLS peers when
operating as AP") added a rule that drops Action frames to TDLS-peers
based on an Action frame having different DA (Address 1) and BSSID
(Address 3) values. This is not correct since it misses the possibility
of BSSID being a wildcard BSSID in which case the Address 1 would not
necessarily match.

Fix this by allowing mac80211 to accept wildcard BSSID in an Action
frame when in AP mode.

Fixes: b396076a300d ("mac80211: ignore frames between TDLS peers when operating as AP")
Cc: stable@vger.kernel.org
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c