FILS: Allow hostapd to select FILS AKM for connection
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
b8ae56e4d0
commit
c30ed45f45
1 changed files with 24 additions and 0 deletions
|
@ -533,6 +533,18 @@ int wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth,
|
|||
selector = RSN_AUTH_KEY_MGMT_802_1X_SUITE_B_192;
|
||||
else if (data.key_mgmt & WPA_KEY_MGMT_IEEE8021X_SUITE_B)
|
||||
selector = RSN_AUTH_KEY_MGMT_802_1X_SUITE_B;
|
||||
#ifdef CONFIG_FILS
|
||||
#ifdef CONFIG_IEEE80211R
|
||||
else if (data.key_mgmt & WPA_KEY_MGMT_FT_FILS_SHA384)
|
||||
selector = RSN_AUTH_KEY_MGMT_FT_FILS_SHA384;
|
||||
else if (data.key_mgmt & WPA_KEY_MGMT_FT_FILS_SHA256)
|
||||
selector = RSN_AUTH_KEY_MGMT_FT_FILS_SHA256;
|
||||
#endif /* CONFIG_IEEE80211R */
|
||||
else if (data.key_mgmt & WPA_KEY_MGMT_FILS_SHA384)
|
||||
selector = RSN_AUTH_KEY_MGMT_FILS_SHA384;
|
||||
else if (data.key_mgmt & WPA_KEY_MGMT_FILS_SHA256)
|
||||
selector = RSN_AUTH_KEY_MGMT_FILS_SHA256;
|
||||
#endif /* CONFIG_FILS */
|
||||
#ifdef CONFIG_IEEE80211R
|
||||
else if (data.key_mgmt & WPA_KEY_MGMT_FT_IEEE8021X)
|
||||
selector = RSN_AUTH_KEY_MGMT_FT_802_1X;
|
||||
|
@ -615,6 +627,18 @@ int wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth,
|
|||
sm->wpa_key_mgmt = WPA_KEY_MGMT_IEEE8021X_SUITE_B_192;
|
||||
else if (key_mgmt & WPA_KEY_MGMT_IEEE8021X_SUITE_B)
|
||||
sm->wpa_key_mgmt = WPA_KEY_MGMT_IEEE8021X_SUITE_B;
|
||||
#ifdef CONFIG_FILS
|
||||
#ifdef CONFIG_IEEE80211R
|
||||
else if (key_mgmt & WPA_KEY_MGMT_FT_FILS_SHA384)
|
||||
sm->wpa_key_mgmt = WPA_KEY_MGMT_FT_FILS_SHA384;
|
||||
else if (data.key_mgmt & WPA_KEY_MGMT_FT_FILS_SHA256)
|
||||
sm->wpa_key_mgmt = WPA_KEY_MGMT_FT_FILS_SHA256;
|
||||
#endif /* CONFIG_IEEE80211R */
|
||||
else if (key_mgmt & WPA_KEY_MGMT_FILS_SHA384)
|
||||
sm->wpa_key_mgmt = WPA_KEY_MGMT_FILS_SHA384;
|
||||
else if (key_mgmt & WPA_KEY_MGMT_FILS_SHA256)
|
||||
sm->wpa_key_mgmt = WPA_KEY_MGMT_FILS_SHA256;
|
||||
#endif /* CONFIG_FILS */
|
||||
#ifdef CONFIG_IEEE80211R
|
||||
else if (key_mgmt & WPA_KEY_MGMT_FT_IEEE8021X)
|
||||
sm->wpa_key_mgmt = WPA_KEY_MGMT_FT_IEEE8021X;
|
||||
|
|
Loading…
Reference in a new issue