nl80211: add WPA3 definition for SAE authentication

Add definition of WPA version 3 for SAE authentication.

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>
This commit is contained in:
Chung-Hsien Hsu
2019-05-09 09:49:05 +00:00
committed by Johannes Berg
parent f4d75993d8
commit cc3e14c21a
2 changed files with 3 additions and 1 deletions

View File

@@ -4406,6 +4406,7 @@ enum nl80211_mfp {
enum nl80211_wpa_versions { enum nl80211_wpa_versions {
NL80211_WPA_VERSION_1 = 1 << 0, NL80211_WPA_VERSION_1 = 1 << 0,
NL80211_WPA_VERSION_2 = 1 << 1, NL80211_WPA_VERSION_2 = 1 << 1,
NL80211_WPA_VERSION_3 = 1 << 2,
}; };
/** /**

View File

@@ -8736,7 +8736,8 @@ static int nl80211_dump_survey(struct sk_buff *skb, struct netlink_callback *cb)
static bool nl80211_valid_wpa_versions(u32 wpa_versions) static bool nl80211_valid_wpa_versions(u32 wpa_versions)
{ {
return !(wpa_versions & ~(NL80211_WPA_VERSION_1 | 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) static int nl80211_authenticate(struct sk_buff *skb, struct genl_info *info)