From f6de72534e373b3a471fac93e871d16fc4282446 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 26 Mar 2018 11:55:42 +0300 Subject: [PATCH] Add NOTE control interface command for hostapd 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 --- hostapd/ctrl_iface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index 0c372b965..e8b1810e1 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -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);