[PATCH 12/18] wpa_supplicant: Accept NOTE command on global socket
Benjamin Berg
benjamin at sipsolutions.net
Thu Oct 30 01:24:43 PDT 2025
From: Benjamin Berg <benjamin.berg at intel.com>
This is needed because we want to send a NOTE with the current test to
all wpa_supplicant instances, and not all of them may have an interface
configured at the time.
Signed-off-by: Benjamin Berg <benjamin.berg at intel.com>
---
wpa_supplicant/ctrl_iface.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 4f4e1832af..9d054b801c 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -14962,6 +14962,9 @@ char * wpa_supplicant_global_ctrl_iface_process(struct wpa_global *global,
} 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);
+ wpa_trace_set_context(buf + 5);
} else {
os_memcpy(reply, "UNKNOWN COMMAND\n", 16);
reply_len = 16;
--
2.51.0
More information about the Hostap
mailing list