aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2014-11-27 15:02:12 (GMT)
committerJouni Malinen <j@w1.fi>2014-11-27 15:12:47 (GMT)
commit4e0990dc88a811c351709aa169e1ed072347625e (patch)
tree9fd877c08875cde1fdf15dc86642ec420516e163 /wpa_supplicant/mesh.c
parent7a94120ea9dbea192e7dfb16a971509f673b167b (diff)
downloadhostap-4e0990dc88a811c351709aa169e1ed072347625e.zip
hostap-4e0990dc88a811c351709aa169e1ed072347625e.tar.gz
hostap-4e0990dc88a811c351709aa169e1ed072347625e.tar.bz2
mesh: Send peering close message before leaving mesh
This is needed to allow proper Action frame transmission to work without having to claim these to be offchannel operations. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/mesh.c')
-rw-r--r--wpa_supplicant/mesh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wpa_supplicant/mesh.c b/wpa_supplicant/mesh.c
index 8cdf189..07d47ce 100644
--- a/wpa_supplicant/mesh.c
+++ b/wpa_supplicant/mesh.c
@@ -369,14 +369,15 @@ int wpa_supplicant_leave_mesh(struct wpa_supplicant *wpa_s)
wpa_msg(wpa_s, MSG_INFO, "leaving mesh");
+ /* Need to send peering close messages first */
+ wpa_supplicant_mesh_deinit(wpa_s);
+
ret = wpa_drv_leave_mesh(wpa_s);
if (ret)
wpa_msg(wpa_s, MSG_ERROR, "mesh leave error=%d", ret);
wpa_drv_set_operstate(wpa_s, 1);
- wpa_supplicant_mesh_deinit(wpa_s);
-
return ret;
}