aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh_mpm.c
diff options
context:
space:
mode:
authorSaurav Babu <saurav.babu@samsung.com>2017-07-18 07:07:54 (GMT)
committerJouni Malinen <j@w1.fi>2017-09-09 22:39:35 (GMT)
commit9b0701fbf5b340f57186df7a99c66c7aef7a6cd1 (patch)
tree5a4d9498415eac55bd1a0933432017ada865c8e4 /wpa_supplicant/mesh_mpm.c
parenta39b040b4c783153c1bcfc2f8d8a6f15c4c8990c (diff)
downloadhostap-9b0701fbf5b340f57186df7a99c66c7aef7a6cd1.zip
hostap-9b0701fbf5b340f57186df7a99c66c7aef7a6cd1.tar.gz
hostap-9b0701fbf5b340f57186df7a99c66c7aef7a6cd1.tar.bz2
dbus: Add MeshPeerConnected signal
This is similar to the control interface event MESH-PEER-CONNECTED. Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
Diffstat (limited to 'wpa_supplicant/mesh_mpm.c')
-rw-r--r--wpa_supplicant/mesh_mpm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/mesh_mpm.c b/wpa_supplicant/mesh_mpm.c
index f152044..2047fb8 100644
--- a/wpa_supplicant/mesh_mpm.c
+++ b/wpa_supplicant/mesh_mpm.c
@@ -20,6 +20,7 @@
#include "driver_i.h"
#include "mesh_mpm.h"
#include "mesh_rsn.h"
+#include "notify.h"
struct mesh_peer_mgmt_ie {
const u8 *proto_id; /* Mesh Peering Protocol Identifier (2 octets) */
@@ -857,6 +858,9 @@ static void mesh_mpm_plink_estab(struct wpa_supplicant *wpa_s,
/* Send ctrl event */
wpa_msg(wpa_s, MSG_INFO, MESH_PEER_CONNECTED MACSTR,
MAC2STR(sta->addr));
+
+ /* Send D-Bus event */
+ wpas_notify_mesh_peer_connected(wpa_s, sta->addr);
}