aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/notify.c
diff options
context:
space:
mode:
authorSaurav Babu <saurav.babu@samsung.com>2017-07-18 07:07:55 (GMT)
committerJouni Malinen <j@w1.fi>2017-09-09 22:39:37 (GMT)
commita9de99b1c50d1db7ff51d192cec5e7577ef58a29 (patch)
tree3bdd6615525fdffe99f3a2921c84d61eb3081f3a /wpa_supplicant/notify.c
parent9b0701fbf5b340f57186df7a99c66c7aef7a6cd1 (diff)
downloadhostap-a9de99b1c50d1db7ff51d192cec5e7577ef58a29.zip
hostap-a9de99b1c50d1db7ff51d192cec5e7577ef58a29.tar.gz
hostap-a9de99b1c50d1db7ff51d192cec5e7577ef58a29.tar.bz2
dbus: Add MeshPeerDisconnected signal
This is similar to the control interface event MESH-PEER-DISCONNECTED. Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Diffstat (limited to 'wpa_supplicant/notify.c')
-rw-r--r--wpa_supplicant/notify.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c
index 5ed414e..3e67a77 100644
--- a/wpa_supplicant/notify.c
+++ b/wpa_supplicant/notify.c
@@ -885,4 +885,14 @@ void wpas_notify_mesh_peer_connected(struct wpa_supplicant *wpa_s,
wpas_dbus_signal_mesh_peer_connected(wpa_s, peer_addr);
}
+
+void wpas_notify_mesh_peer_disconnected(struct wpa_supplicant *wpa_s,
+ const u8 *peer_addr, int reason_code)
+{
+ if (wpa_s->p2p_mgmt)
+ return;
+
+ wpas_dbus_signal_mesh_peer_disconnected(wpa_s, peer_addr, reason_code);
+}
+
#endif /* CONFIG_MESH */