aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_supplicant.c
diff options
context:
space:
mode:
authorSaurav Babu <saurav.babu@samsung.com>2017-07-18 07:07:53 (GMT)
committerJouni Malinen <j@w1.fi>2017-09-09 11:12:33 (GMT)
commita39b040b4c783153c1bcfc2f8d8a6f15c4c8990c (patch)
treebc9aa4ce7e69596f3241179fdcae79ab38d86077 /wpa_supplicant/wpa_supplicant.c
parent89e9cd25d235eed91eaf397550c77ce07e5a895f (diff)
downloadhostap-a39b040b4c783153c1bcfc2f8d8a6f15c4c8990c.zip
hostap-a39b040b4c783153c1bcfc2f8d8a6f15c4c8990c.tar.gz
hostap-a39b040b4c783153c1bcfc2f8d8a6f15c4c8990c.tar.bz2
dbus: Add MeshGroupRemoved signal
This is similar to the control interface event MESH-GROUP-REMOVED. Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Diffstat (limited to 'wpa_supplicant/wpa_supplicant.c')
-rw-r--r--wpa_supplicant/wpa_supplicant.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index c41093a..8814267 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -61,6 +61,10 @@
#include "wpas_kay.h"
#include "mesh.h"
#include "dpp_supplicant.h"
+#ifdef CONFIG_MESH
+#include "ap/ap_config.h"
+#include "ap/hostapd.h"
+#endif /* CONFIG_MESH */
const char *const wpa_supplicant_version =
"wpa_supplicant v" VERSION_STR "\n"
@@ -2983,8 +2987,13 @@ void wpa_supplicant_deauthenticate(struct wpa_supplicant *wpa_s,
#ifdef CONFIG_MESH
if (wpa_s->ifmsh) {
+ struct mesh_conf *mconf;
+
+ mconf = wpa_s->ifmsh->mconf;
wpa_msg(wpa_s, MSG_INFO, MESH_GROUP_REMOVED "%s",
wpa_s->ifname);
+ wpas_notify_mesh_group_removed(wpa_s, mconf->meshid,
+ mconf->meshid_len, reason_code);
wpa_supplicant_leave_mesh(wpa_s);
}
#endif /* CONFIG_MESH */