From: Dmitry Shmidt Date: Sun, 29 Jan 2012 18:18:48 +0000 (+0200) Subject: Deinit driver before notifying interface has been removed X-Git-Tag: aosp-jb-start~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2523ff6ea448aada70a0409bccac451fd6e59728;p=thirdparty%2Fhostap.git Deinit driver before notifying interface has been removed This avoids issues with some external program starting to use the interface based on the interface removal event before wpa_supplicant has completed deinitialization of the driver interface. Signed-off-by: Dmitry Shmidt --- diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 45149ffca..6d622b82b 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -2414,11 +2414,11 @@ static void wpa_supplicant_deinit_iface(struct wpa_supplicant *wpa_s, wpa_supplicant_cleanup(wpa_s); - if (notify) - wpas_notify_iface_removed(wpa_s); - if (wpa_s->drv_priv) wpa_drv_deinit(wpa_s); + + if (notify) + wpas_notify_iface_removed(wpa_s); }