diff options
author | Janusz Dziedzic <janusz.dziedzic@tieto.com> | 2016-03-04 09:20:30 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2016-03-05 15:44:50 (GMT) |
commit | 3e6717184695d49995548c6b59e40ecbac767347 (patch) | |
tree | 6fb7b7243f79609c4d964e0239e2e64bbe327111 /hostapd | |
parent | 618f5d01b0cf1fa3a591470c90a6a69f92880ecf (diff) | |
download | hostap-3e6717184695d49995548c6b59e40ecbac767347.zip hostap-3e6717184695d49995548c6b59e40ecbac767347.tar.gz hostap-3e6717184695d49995548c6b59e40ecbac767347.tar.bz2 |
hostapd: Add global TERMINATE command
This will terminate the hostapd process.
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Diffstat (limited to 'hostapd')
-rw-r--r-- | hostapd/ctrl_iface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index debf28c..33819ab 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -3164,6 +3164,8 @@ static void hostapd_global_ctrl_iface_receive(int sock, void *eloop_ctx, } else if (os_strncmp(buf, "INTERFACES", 10) == 0) { reply_len = hostapd_global_ctrl_iface_interfaces( interfaces, buf + 10, reply, sizeof(buffer)); + } else if (os_strcmp(buf, "TERMINATE") == 0) { + eloop_terminate(); } else { wpa_printf(MSG_DEBUG, "Unrecognized global ctrl_iface command " "ignored"); |