Skip to contentSkip to conversation

cfg80211: minor updates for WPA3 OWE support

PATCH New Sergey Matyukevich 1 participant 3 messages Feb 13, 2020 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore
#0 lore raw

cover 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(+)
Signature · 1 line
2.11.0
#1 lore raw

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.

---
 net/wireless/nl80211.c | 1 +
 1 file changed, 1 insertion(+)
net/wireless/nl80211.c +1 -0
index 33fe6ac1c242..6b2bac002b03 100644
@@ -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 },
Signature · 1 line
2.11.0
#2 lore raw

PATCH 2/2 ieee80211: add WPA3 OWE AKM suite selector

In reply to Sergey Matyukevich

Add the definition for Opportunistic Wireless Encryption AKM selector.

---
 include/linux/ieee80211.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/ieee80211.h +1 -0
index 6f3e7c5c600a..33d907eec0b6 100644
@@ -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
 
Signature · 1 line
2.11.0