mesh: Fix for leaving mesh

Avoid multiple execution of wpa_drv_leave_mesh().

Fixes: 0896c442dc ("mesh: Fix for mesh init/deinit")
Signed-off-by: Abinaya Kalaiselvan <akalaise@codeaurora.org>
This commit is contained in:
Abinaya Kalaiselvan 2021-02-01 10:29:36 +05:30 committed by Jouni Malinen
parent 24f0507af4
commit df0bfe4759

View file

@ -44,6 +44,7 @@ static void wpa_supplicant_mesh_deinit(struct wpa_supplicant *wpa_s,
os_free(wpa_s->mesh_rsn);
wpa_s->mesh_rsn = NULL;
if (!also_clear_hostapd)
wpa_supplicant_leave_mesh(wpa_s, false);
}