aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2020-04-21 17:48:15 +0300
committerJohannes Berg <johannes.berg@intel.com>2020-04-24 12:33:41 +0200
commit873b1cf61105a67f01f6fc3758405edb1bd1ba35 (patch)
tree5f8c17ec6a69290c81232f8f7b8670e90d072399 /net/mac80211/main.c
parentnl80211: allow client-only BIGTK support (diff)
downloadwireguard-linux-873b1cf61105a67f01f6fc3758405edb1bd1ba35.tar.xz
wireguard-linux-873b1cf61105a67f01f6fc3758405edb1bd1ba35.zip
mac80211: Process multicast RX registration for Action frames
Convert a user space registration for processing multicast Action frames (NL80211_CMD_REGISTER_FRAME with NL80211_ATTR_RECEIVE_MULTICAST) to a new enum ieee80211_filter_flags bit FIF_MCAST_ACTION so that drivers can update their RX filter parameters appropriately, if needed. Signed-off-by: Jouni Malinen <jouni@codeaurora.org> Link: https://lore.kernel.org/r/20200421144815.19175-1-jouni@codeaurora.org [rename variables to rx_mcast_action_reg indicating action frames only] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 0e9ad60fb2b3..a0cb052ea30d 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -64,6 +64,9 @@ void ieee80211_configure_filter(struct ieee80211_local *local)
if (local->fif_pspoll)
new_flags |= FIF_PSPOLL;
+ if (local->rx_mcast_action_reg)
+ new_flags |= FIF_MCAST_ACTION;
+
spin_lock_bh(&local->filter_lock);
changed_flags = local->filter_flags ^ new_flags;