nl80211: add WPA3 definition for SAE authentication lineage-22.0 lineage-22.1
authorChung-Hsien Hsu <stanley.hsu@cypress.com>
Thu, 9 May 2019 09:49:05 +0000 (09:49 +0000)
committerNolen Johnson <johnsonnolen@gmail.com>
Sat, 14 Dec 2024 20:56:10 +0000 (15:56 -0500)
Add definition of WPA version 3 for SAE authentication.

Change-Id: I19ca34b8965168f011cc1352eba420f2d54b0258
Signed-off-by: Chung-Hsien Hsu <stanley.hsu@cypress.com>
Signed-off-by: Chi-Hsien Lin <chi-hsien.lin@cypress.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/uapi/linux/nl80211.h
net/wireless/nl80211.c

index e267ac1c3bad152ae79fe523c7b928232ef477a5..daa255535cc5cdad90426a6dbbe435516a605e4e 100755 (executable)
@@ -4010,6 +4010,7 @@ enum nl80211_mfp {
 enum nl80211_wpa_versions {
        NL80211_WPA_VERSION_1 = 1 << 0,
        NL80211_WPA_VERSION_2 = 1 << 1,
+       NL80211_WPA_VERSION_3 = 1 << 2,
 };
 
 /**
index 28640961d08c07b20484962f984a090954ef1643..a2deed6446fc5f13ad6c2198259d73eddb9b1196 100755 (executable)
@@ -8008,7 +8008,8 @@ static int nl80211_dump_survey(struct sk_buff *skb, struct netlink_callback *cb)
 static bool nl80211_valid_wpa_versions(u32 wpa_versions)
 {
        return !(wpa_versions & ~(NL80211_WPA_VERSION_1 |
-                                 NL80211_WPA_VERSION_2));
+                                 NL80211_WPA_VERSION_2 |
+                                 NL80211_WPA_VERSION_3));
 }
 
 static int nl80211_authenticate(struct sk_buff *skb, struct genl_info *info)