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:
parent
24f0507af4
commit
df0bfe4759
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue