]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Cancel pending scan request on DISCONNECT command
authorJouni Malinen <j@w1.fi>
Tue, 26 Jun 2012 16:57:03 +0000 (19:57 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 26 Jun 2012 16:57:03 +0000 (19:57 +0300)
Previously, a pending scan request could be left running when processing
DISCONNECT command from control interface. This can result in unexpected
scan, so cancel the request to avoid this.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/ctrl_iface.c

index 612e258d05a1c452088fbeb5e3b712cfdfdd8c6f..c3612a540ba64bb65dc52650a54244714a0cf85f 100644 (file)
@@ -4242,6 +4242,7 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
                wpa_s->reassociate = 0;
                wpa_s->disconnected = 1;
                wpa_supplicant_cancel_sched_scan(wpa_s);
+               wpa_supplicant_cancel_scan(wpa_s);
                wpa_supplicant_deauthenticate(wpa_s,
                                              WLAN_REASON_DEAUTH_LEAVING);
        } else if (os_strcmp(buf, "SCAN") == 0) {