From d9504779133a5db9e3aa5e3caed5556defc44070 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 31 Jan 2014 23:31:26 +0200 Subject: [PATCH] Fix authentication algorithm negotiation in SME code Commit 6ac4b15ef8af434d216fd2dac62ec82948ab0fbd (wpa_radio work for connection) caused a regression for cases where multiple auth_alg values are set in a network block and wpa_supplicant-based SME is supposed to iterate through them. The connection radio work was not terminated when receiving authentication failure and this resulted in the following authentication attempt failing. Signed-hostap: Jouni Malinen --- wpa_supplicant/sme.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index 43f40cd1a..451f5aebc 100644 --- a/wpa_supplicant/sme.c +++ b/wpa_supplicant/sme.c @@ -636,6 +636,8 @@ void sme_event_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data) return; } + wpas_connect_work_done(wpa_s); + switch (data->auth.auth_type) { case WLAN_AUTH_OPEN: wpa_s->current_ssid->auth_alg = WPA_AUTH_ALG_SHARED;