Skip to content

Commit 863ccf3

Browse files
Chung-Hsien HsuDhineshCool
authored andcommitted
nl80211: add WPA3 definition for SAE authentication
Add definition of WPA version 3 for SAE authentication. Change-Id: I19ca34b8965168f011cc1352eba420f2d54b0258 Signed-off-by: Chung-Hsien Hsu <[email protected]> Signed-off-by: Chi-Hsien Lin <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
1 parent 6f86c8c commit 863ccf3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

include/uapi/linux/nl80211.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3957,6 +3957,7 @@ enum nl80211_mfp {
39573957
enum nl80211_wpa_versions {
39583958
NL80211_WPA_VERSION_1 = 1 << 0,
39593959
NL80211_WPA_VERSION_2 = 1 << 1,
3960+
NL80211_WPA_VERSION_3 = 1 << 2,
39603961
};
39613962

39623963
/**

net/wireless/nl80211.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7861,7 +7861,8 @@ static int nl80211_dump_survey(struct sk_buff *skb, struct netlink_callback *cb)
78617861
static bool nl80211_valid_wpa_versions(u32 wpa_versions)
78627862
{
78637863
return !(wpa_versions & ~(NL80211_WPA_VERSION_1 |
7864-
NL80211_WPA_VERSION_2));
7864+
NL80211_WPA_VERSION_2 |
7865+
NL80211_WPA_VERSION_3));
78657866
}
78667867

78677868
static int nl80211_authenticate(struct sk_buff *skb, struct genl_info *info)

0 commit comments

Comments
 (0)