aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-03-12 20:39:38 (GMT)
committerJouni Malinen <j@w1.fi>2017-03-12 20:39:38 (GMT)
commitcad291d671434b4edffeaa40100c1adad92e4ed9 (patch)
tree5757a3e3d93d6f13d576631c219254a1c7023493
parent049142bcfed6c8ea9a12b876c2d091a6776bfb1b (diff)
downloadhostap-cad291d671434b4edffeaa40100c1adad92e4ed9.zip
hostap-cad291d671434b4edffeaa40100c1adad92e4ed9.tar.gz
hostap-cad291d671434b4edffeaa40100c1adad92e4ed9.tar.bz2
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 <j@w1.fi>
-rw-r--r--src/common/defs.h1
-rw-r--r--src/drivers/driver_nl80211.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/common/defs.h b/src/common/defs.h
index 4f2b640..03948ec 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 5d78113..bceeba2 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);