]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Add TERMINATE as per-interface command
authorJouni Malinen <j@w1.fi>
Tue, 27 Dec 2016 12:50:14 +0000 (14:50 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 27 Dec 2016 12:50:14 +0000 (14:50 +0200)
This was already avaialble through the global control interface, but not
the per-interface one.

Signed-off-by: Jouni Malinen <j@w1.fi>
hostapd/ctrl_iface.c

index b9d9411e96e33e3032875812dc1f756ec2373158..7a49249e70b8a19e4b9fb59e2d8cde57f226bc75 100644 (file)
@@ -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;