aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-08-24 20:30:20 (GMT)
committerJouni Malinen <j@w1.fi>2017-08-24 20:30:20 (GMT)
commit64a0a75b5b6331fb70032258cbece6c82c9698dc (patch)
tree01f92ba5e69443e63c22593bc562246fd76aeda2 /src
parent7475e80f149fcd799e273a9e8ff9ea00de42d792 (diff)
downloadhostap-64a0a75b5b6331fb70032258cbece6c82c9698dc.zip
hostap-64a0a75b5b6331fb70032258cbece6c82c9698dc.tar.gz
hostap-64a0a75b5b6331fb70032258cbece6c82c9698dc.tar.bz2
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>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_nl80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 40889ce..272bd2f 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");