]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add NOTE control interface command for hostapd
authorJouni Malinen <jouni@codeaurora.org>
Mon, 26 Mar 2018 08:55:42 +0000 (11:55 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 26 Mar 2018 09:31:04 +0000 (12:31 +0300)
This does the same as the matching command in wpa_supplicant, i.e., add
a note in the debug log.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
hostapd/ctrl_iface.c

index 0c372b965bb54c00fe5bfd94613a432c19df9e8d..e8b1810e17a7fbdf0842bb2708a93fb8d296df39 100644 (file)
@@ -2788,6 +2788,8 @@ static int hostapd_ctrl_iface_receive_process(struct hostapd_data *hapd,
        } else if (os_strncmp(buf, "RELOG", 5) == 0) {
                if (wpa_debug_reopen_file() < 0)
                        reply_len = -1;
+       } else if (os_strncmp(buf, "NOTE ", 5) == 0) {
+               wpa_printf(MSG_INFO, "NOTE: %s", buf + 5);
        } else if (os_strcmp(buf, "STATUS") == 0) {
                reply_len = hostapd_ctrl_iface_status(hapd, reply,
                                                      reply_size);