[PATCH v3 15/26] hostapd: add global TERMINATE command
Janusz Dziedzic
janusz.dziedzic at tieto.com
Wed Feb 17 04:14:18 PST 2016
This will terminate hostapd
Signed-off-by: Janusz Dziedzic <janusz.dziedzic at tieto.com>
---
hostapd/ctrl_iface.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index d24e075..d55ada2 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -3084,6 +3084,8 @@ static void hostapd_global_ctrl_iface_receive(int sock, void *eloop_ctx,
reply_len = hostapd_global_ctrl_iface_interfaces(interfaces,
reply,
sizeof(buffer));
+ } else if (os_strncmp(buf, "TERMINATE", 9) == 0) {
+ eloop_terminate();
} else {
wpa_printf(MSG_DEBUG, "Unrecognized global ctrl_iface command "
"ignored");
--
1.9.1
More information about the Hostap
mailing list