From: Jouni Malinen Date: Thu, 24 Aug 2017 20:30:20 +0000 (+0300) Subject: nl80211: Fix auth_alg selection with FILS in the connect command X-Git-Tag: hostap_2_7~1155 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=64a0a75b5b6331fb70032258cbece6c82c9698dc;p=thirdparty%2Fhostap.git 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 --- 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");