2020-02-13 13:17:55

by Sergey Matyukevich

[permalink] [raw]
Subject: [PATCH 0/2] cfg80211: minor updates for WPA3 OWE support

Hello Johannes and all,

This patch series suggests a couple of minor changes related to WPA3 OWE.
One patch adds definition for OWE AKM suite. Another patch adds missing
validation policy for NL80211_ATTR_STATUS_CODE.

Validation policy patch fixes hostapd OWE offload for SME-enabled drivers.

Regards,
Sergey

Sergey Matyukevich (2):
cfg80211: add missing policy for NL80211_ATTR_STATUS_CODE
ieee80211: add WPA3 OWE AKM suite selector

include/linux/ieee80211.h | 1 +
net/wireless/nl80211.c | 1 +
2 files changed, 2 insertions(+)

--
2.11.0


2020-02-13 13:17:55

by Sergey Matyukevich

[permalink] [raw]
Subject: [PATCH 2/2] ieee80211: add WPA3 OWE AKM suite selector

Add the definition for Opportunistic Wireless Encryption AKM selector.

Signed-off-by: Sergey Matyukevich <[email protected]>
---
include/linux/ieee80211.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h
index 6f3e7c5c600a..33d907eec0b6 100644
--- a/include/linux/ieee80211.h
+++ b/include/linux/ieee80211.h
@@ -3044,6 +3044,7 @@ struct ieee80211_multiple_bssid_configuration {
#define WLAN_AKM_SUITE_FILS_SHA384 SUITE(0x000FAC, 15)
#define WLAN_AKM_SUITE_FT_FILS_SHA256 SUITE(0x000FAC, 16)
#define WLAN_AKM_SUITE_FT_FILS_SHA384 SUITE(0x000FAC, 17)
+#define WLAN_AKM_SUITE_OWE SUITE(0x000FAC, 18)

#define WLAN_MAX_KEY_LEN 32

--
2.11.0

2020-02-13 13:19:10

by Sergey Matyukevich

[permalink] [raw]
Subject: [PATCH 1/2] cfg80211: add missing policy for NL80211_ATTR_STATUS_CODE

The nl80211_policy is missing for NL80211_ATTR_STATUS_CODE attribute.
As a result, for strictly validated commands, it's assumed to not be
supported.

Signed-off-by: Sergey Matyukevich <[email protected]>
---
net/wireless/nl80211.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 33fe6ac1c242..6b2bac002b03 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -444,6 +444,7 @@ const struct nla_policy nl80211_policy[NUM_NL80211_ATTR] = {
[NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT] = { .type = NLA_FLAG },
[NL80211_ATTR_CONTROL_PORT_OVER_NL80211] = { .type = NLA_FLAG },
[NL80211_ATTR_PRIVACY] = { .type = NLA_FLAG },
+ [NL80211_ATTR_STATUS_CODE] = { .type = NLA_U16 },
[NL80211_ATTR_CIPHER_SUITE_GROUP] = { .type = NLA_U32 },
[NL80211_ATTR_WPA_VERSIONS] = { .type = NLA_U32 },
[NL80211_ATTR_PID] = { .type = NLA_U32 },
--
2.11.0