From 64a0a75b5b6331fb70032258cbece6c82c9698dc Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 24 Aug 2017 23:30:20 +0300 Subject: [PATCH] nl80211: Fix auth_alg selection with FILS in the connect command NL80211_ATTR_AUTH_TYPE needs to be skipped if multiple auth_alg options are included. The previous list missed the new FILS auth_alg here and ended up not doing so if OPEN and FILS were included. Signed-off-by: Jouni Malinen --- src/drivers/driver_nl80211.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 40889ce1f..272bd2f1b 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -5394,6 +5394,8 @@ static int wpa_driver_nl80211_try_connect( algs++; if (params->auth_alg & WPA_AUTH_ALG_LEAP) algs++; + if (params->auth_alg & WPA_AUTH_ALG_FILS) + algs++; if (algs > 1) { wpa_printf(MSG_DEBUG, " * Leave out Auth Type for automatic " "selection");