]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FILS: Define authentication algorithm for FILS SK auth with PFS
authorJouni Malinen <j@w1.fi>
Sun, 12 Mar 2017 20:39:38 +0000 (22:39 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 12 Mar 2017 20:39:38 +0000 (22:39 +0200)
This is needed to add PFS support into hostapd and wpa_supplicant FILS
shared key authentication.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/common/defs.h
src/drivers/driver_nl80211.c

index 4f2b64041e7ff67f3318b90fe5d418ad9c4d2f34..03948ec54e8abd3427c49209a0b3e1104e46b13e 100644 (file)
@@ -163,6 +163,7 @@ static inline int wpa_key_mgmt_cckm(int akm)
 #define WPA_AUTH_ALG_FT BIT(3)
 #define WPA_AUTH_ALG_SAE BIT(4)
 #define WPA_AUTH_ALG_FILS BIT(5)
+#define WPA_AUTH_ALG_FILS_SK_PFS BIT(6)
 
 
 enum wpa_alg {
index 5d78113d4e9af93c280cd51401112bf496b0e216..bceeba2b23ea462eb3a63bcdd3c45313b7f199df 100644 (file)
@@ -3219,6 +3219,8 @@ retry:
                type = NL80211_AUTHTYPE_SAE;
        else if (params->auth_alg & WPA_AUTH_ALG_FILS)
                type = NL80211_AUTHTYPE_FILS_SK;
+       else if (params->auth_alg & WPA_AUTH_ALG_FILS_SK_PFS)
+               type = NL80211_AUTHTYPE_FILS_SK_PFS;
        else
                goto fail;
        wpa_printf(MSG_DEBUG, "  * Auth Type %d", type);