aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-12-27 12:50:14 (GMT)
committerJouni Malinen <j@w1.fi>2016-12-27 12:50:14 (GMT)
commit45997cce405468393ec33e9261cc5c9a2e4be2e2 (patch)
treecab719922e30b542b851d179bb6bf961ba37f8ca /hostapd
parenta0fda9002a32d538d5e04dffaa4ee4b204c4d24f (diff)
downloadhostap-45997cce405468393ec33e9261cc5c9a2e4be2e2.zip
hostap-45997cce405468393ec33e9261cc5c9a2e4be2e2.tar.gz
hostap-45997cce405468393ec33e9261cc5c9a2e4be2e2.tar.bz2
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 <j@w1.fi>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/ctrl_iface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index b9d9411..7a49249 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;