[PATCH] Change logging level for CTRL-EVENT-SIGNAL-CHANGE to MSG_DEBUG

Kan-Ru Chen kanru at kanru.info
Wed Nov 27 07:18:37 PST 2024


The default logging level for the CTRL-EVENT-SIGNAL-CHANGE message
may be repeated many times and fill the log file or journal.

For example https://bugzilla.redhat.com/show_bug.cgi?id=2309148 and
the first few results from searching CTRL-EVENT-SIGNAL-CHANGE on the
web contain various complaints and workarounds.

Changing the logging level to MSG_DEBUG would allow the message to
be still useful for debugging.

Signed-off-by: Kan-Ru Chen <kanru at kanru.info>
---
 wpa_supplicant/events.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index a7c56f771..c411f5faf 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -6755,7 +6755,7 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
 					data->eapol_rx.encrypted);
 		break;
 	case EVENT_SIGNAL_CHANGE:
-		wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_SIGNAL_CHANGE
+		wpa_msg(wpa_s, MSG_DEBUG, WPA_EVENT_SIGNAL_CHANGE
 			"above=%d signal=%d noise=%d txrate=%lu",
 			data->signal_change.above_threshold,
 			data->signal_change.data.signal,
-- 
2.47.0



More information about the Hostap mailing list