From 44a1662a50061451068d780e017da699b1c8c672 Mon Sep 17 00:00:00 2001 From: Masashi Honma Date: Sat, 15 Nov 2014 10:35:24 +0900 Subject: [PATCH] mesh: Add wpa_cli action script processing for mesh events Signed-off-by: Natsuki Itaya Signed-off-by: Masashi Honma --- wpa_supplicant/wpa_cli.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c index 5a3d1f69e..912345415 100644 --- a/wpa_supplicant/wpa_cli.c +++ b/wpa_supplicant/wpa_cli.c @@ -3272,6 +3272,14 @@ static void wpa_cli_action_process(const char *msg) wpa_cli_connected = 0; wpa_cli_exec(action_file, ifname, "DISCONNECTED"); } + } else if (str_match(pos, MESH_GROUP_STARTED)) { + wpa_cli_exec(action_file, ctrl_ifname, pos); + } else if (str_match(pos, MESH_GROUP_REMOVED)) { + wpa_cli_exec(action_file, ctrl_ifname, pos); + } else if (str_match(pos, MESH_PEER_CONNECTED)) { + wpa_cli_exec(action_file, ctrl_ifname, pos); + } else if (str_match(pos, MESH_PEER_DISCONNECTED)) { + wpa_cli_exec(action_file, ctrl_ifname, pos); } else if (str_match(pos, P2P_EVENT_GROUP_STARTED)) { wpa_cli_exec(action_file, ifname, pos); } else if (str_match(pos, P2P_EVENT_GROUP_REMOVED)) {