]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Mark interface disconnected on removal request
authorJouni Malinen <jouni@qca.qualcomm.com>
Sun, 12 May 2013 16:16:35 +0000 (19:16 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 12 May 2013 16:18:55 +0000 (19:18 +0300)
This cleans up debug log by not trying to process the disconnection
event as a failure that could result in blacklist addition and auto
connect attempt. These are pointless operations since the interface is
going to removed immediately after this.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/wpa_supplicant.c

index f0e1d4e457724917d45820c63af6ea9bfdf5e422..2d052477ee95b543a2df8f32441dfb2646ae99bf 100644 (file)
@@ -3018,6 +3018,7 @@ next_driver:
 static void wpa_supplicant_deinit_iface(struct wpa_supplicant *wpa_s,
                                        int notify, int terminate)
 {
+       wpa_s->disconnected = 1;
        if (wpa_s->drv_priv) {
                wpa_supplicant_deauthenticate(wpa_s,
                                              WLAN_REASON_DEAUTH_LEAVING);