From: Jouni Malinen Date: Sun, 12 May 2013 16:16:35 +0000 (+0300) Subject: Mark interface disconnected on removal request, DO NOT MERGE X-Git-Tag: android-x86-4.4-r1~31^2^2 X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fexternal-wpa_supplicant_8.git;a=commitdiff_plain;h=e7ccc40240b72272737d4f25041e4b1374f20b09 Mark interface disconnected on removal request, DO NOT MERGE 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 Signed-off-by: Iliyan Malchev --- diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index a9a939b..a4ceaec 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -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);