From cad291d671434b4edffeaa40100c1adad92e4ed9 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 12 Mar 2017 22:39:38 +0200 Subject: [PATCH] FILS: Define authentication algorithm for FILS SK auth with PFS This is needed to add PFS support into hostapd and wpa_supplicant FILS shared key authentication. Signed-off-by: Jouni Malinen --- src/common/defs.h | 1 + src/drivers/driver_nl80211.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/common/defs.h b/src/common/defs.h index 4f2b64041..03948ec54 100644 --- a/src/common/defs.h +++ b/src/common/defs.h @@ -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 { diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 5d78113d4..bceeba2b2 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -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);