OSDN Git Service

Mark interface disconnected on removal request, DO NOT MERGE
authorJouni Malinen <jouni@qca.qualcomm.com>
Sun, 12 May 2013 16:16:35 +0000 (19:16 +0300)
committerThe Android Automerger <android-build@google.com>
Tue, 16 Jul 2013 22:26:00 +0000 (15:26 -0700)
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.

Bug: 8785804
Change-Id: I2406d9b9bd9f0a83ae9fd0b0962f1134fda2bb9e
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
wpa_supplicant/wpa_supplicant.c

index a9a939b..a4ceaec 100644 (file)
@@ -3040,6 +3040,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);