]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Fix auth_alg selection with FILS in the connect command
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 24 Aug 2017 20:30:20 +0000 (23:30 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 24 Aug 2017 20:30:20 +0000 (23:30 +0300)
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>
src/drivers/driver_nl80211.c

index 40889ce1f38847f3e0f80b0f42070b34a7e6bbd0..272bd2f1bdf262453551781c7136da7f7f25cc6e 100644 (file)
@@ -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");