2020-03-12 09:13:14

by Markus Theil

[permalink] [raw]
Subject: [PATCH 0/3] nl80211/mac80211: add option to disable pre-auth over control port

Jouni pointed out, that it should be possible to handle pre-auth frames as data
frames and they should not be send over the nl80211 control port. Because iwd
already makes use of this particular feature, this patch series adds an option
to disable forwarding pre-auth frames over the control port on demand.

Markus Theil (3):
nl80211: add no pre-auth attribute and ext. feature flag for ctrl.
port
mac80211: handle no-preauth flag for control port
mac80211: enable control port no-preauth feature

include/net/cfg80211.h | 1 +
include/uapi/linux/nl80211.h | 13 ++++++++++++-
net/mac80211/cfg.c | 4 ++++
net/mac80211/ieee80211_i.h | 1 +
net/mac80211/iface.c | 4 ++++
net/mac80211/main.c | 2 ++
net/mac80211/mlme.c | 2 ++
net/mac80211/rx.c | 3 ++-
net/wireless/nl80211.c | 4 ++++
9 files changed, 32 insertions(+), 2 deletions(-)

--
2.25.1


2020-03-12 09:13:15

by Markus Theil

[permalink] [raw]
Subject: [PATCH 3/3] mac80211: enable control port no-preauth feature

This patch announces the capability to disable pre-auth over nl80211
control port for all mac80211-based device drivers.

Signed-off-by: Markus Theil <[email protected]>
---
net/mac80211/main.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 944e86da5c65..ee1b24845b66 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -589,6 +589,8 @@ struct ieee80211_hw *ieee80211_alloc_hw_nm(size_t priv_data_len,
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_FILS_STA);
wiphy_ext_feature_set(wiphy,
NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211);
+ wiphy_ext_feature_set(wiphy,
+ NL80211_EXT_FEATURE_CONTROL_PORT_NO_PREAUTH);

if (!ops->hw_scan) {
wiphy->features |= NL80211_FEATURE_LOW_PRIORITY_SCAN |
--
2.25.1