From 45997cce405468393ec33e9261cc5c9a2e4be2e2 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 27 Dec 2016 14:50:14 +0200 Subject: [PATCH] hostapd: Add TERMINATE as per-interface command This was already avaialble through the global control interface, but not the per-interface one. Signed-off-by: Jouni Malinen --- hostapd/ctrl_iface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index b9d9411e9..7a49249e7 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -2659,6 +2659,8 @@ static int hostapd_ctrl_iface_receive_process(struct hostapd_data *hapd, } else if (os_strcmp(buf, "DRIVER_FLAGS") == 0) { reply_len = hostapd_ctrl_driver_flags(hapd->iface, reply, reply_size); + } else if (os_strcmp(buf, "TERMINATE") == 0) { + eloop_terminate(); } else { os_memcpy(reply, "UNKNOWN COMMAND\n", 16); reply_len = 16;