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 <dimitrysh@google.com>
This commit is contained in:
parent
df509539d4
commit
2523ff6ea4
1 changed files with 3 additions and 3 deletions
|
@ -2414,11 +2414,11 @@ static void wpa_supplicant_deinit_iface(struct wpa_supplicant *wpa_s,
|
||||||
|
|
||||||
wpa_supplicant_cleanup(wpa_s);
|
wpa_supplicant_cleanup(wpa_s);
|
||||||
|
|
||||||
if (notify)
|
|
||||||
wpas_notify_iface_removed(wpa_s);
|
|
||||||
|
|
||||||
if (wpa_s->drv_priv)
|
if (wpa_s->drv_priv)
|
||||||
wpa_drv_deinit(wpa_s);
|
wpa_drv_deinit(wpa_s);
|
||||||
|
|
||||||
|
if (notify)
|
||||||
|
wpas_notify_iface_removed(wpa_s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue