From: Jouni Malinen Date: Mon, 26 Mar 2018 08:55:42 +0000 (+0300) Subject: Add NOTE control interface command for hostapd X-Git-Tag: hostap_2_7~496 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6de72534e373b3a471fac93e871d16fc4282446;p=thirdparty%2Fhostap.git 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 --- 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);