aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-11-10 13:59:41 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-22 19:20:58 (GMT)
commit075b73ea88bca80b90113bebbfeb70f67708401f (patch)
treed351338b97ba8919a8741f99312ad622d6e92300 /wpa_supplicant
parent29d3a90ef8acfac61c378c31c72d5176fecd300d (diff)
downloadhostap-06-075b73ea88bca80b90113bebbfeb70f67708401f.zip
hostap-06-075b73ea88bca80b90113bebbfeb70f67708401f.tar.gz
hostap-06-075b73ea88bca80b90113bebbfeb70f67708401f.tar.bz2
Add wpa_msg_ctrl() for ctrl_interface-only messages
This is like wpa_msg(), but the output is directed only to ctrl_interface listeners. In other words, the output will not be shown on stdout or in syslog. Change scan result reporting to use wpa_msg_ctrl() for CTRL-EVENT-SCAN-RESULTS message at info level and wpa_printf() at debug level to avoid showing scan result events in syslog in the common configuration used with NetworkManager. (cherry picked from commit 69856fadf77e680d01cac09da37e6bb3643ca427)
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/events.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index ebf592b..c1b0c78 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -641,7 +641,8 @@ static void wpa_supplicant_event_scan_results(struct wpa_supplicant *wpa_s)
wpa_msg(wpa_s, MSG_DEBUG, "Cached scan results are "
"empty - not posting");
} else {
- wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_SCAN_RESULTS);
+ wpa_printf(MSG_DEBUG, "New scan results available");
+ wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_SCAN_RESULTS);
wpa_supplicant_dbus_notify_scan_results(wpa_s);
wpas_wps_notify_scan_results(wpa_s);
}