]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix authentication algorithm negotiation in SME code
authorJouni Malinen <j@w1.fi>
Fri, 31 Jan 2014 21:31:26 +0000 (23:31 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 3 Feb 2014 17:34:33 +0000 (19:34 +0200)
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 <j@w1.fi>

wpa_supplicant/sme.c

index 43f40cd1a5f911190db2b926dd28738d1b174231..451f5aebc24a4c7c2342932cd142be65b55a9a71 100644 (file)
@@ -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;