Skip to content

Commit bffd532

Browse files
Chung-Hsien Hsunpjohnson
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 <stanley.hsu@cypress.com> Signed-off-by: Chi-Hsien Lin <chi-hsien.lin@cypress.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 3a67b5d commit bffd532

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

include/uapi/linux/nl80211.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3859,6 +3859,7 @@ enum nl80211_mfp {
38593859
enum nl80211_wpa_versions {
38603860
NL80211_WPA_VERSION_1 = 1 << 0,
38613861
NL80211_WPA_VERSION_2 = 1 << 1,
3862+
NL80211_WPA_VERSION_3 = 1 << 2,
38623863
};
38633864

38643865
/**

net/wireless/nl80211.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7570,7 +7570,8 @@ static int nl80211_dump_survey(struct sk_buff *skb, struct netlink_callback *cb)
75707570
static bool nl80211_valid_wpa_versions(u32 wpa_versions)
75717571
{
75727572
return !(wpa_versions & ~(NL80211_WPA_VERSION_1 |
7573-
NL80211_WPA_VERSION_2));
7573+
NL80211_WPA_VERSION_2 |
7574+
NL80211_WPA_VERSION_3));
75747575
}
75757576

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

0 commit comments

Comments
 (0)