Parcourir la source

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 <jouni@qca.qualcomm.com>
Jouni Malinen il y a 7 ans
Parent
commit
64a0a75b5b
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/drivers/driver_nl80211.c

+ 2 - 0
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");