diff options
author | Jouni Malinen <j@w1.fi> | 2009-12-28 00:44:10 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-12-28 00:44:10 +0200 |
commit | 332d630a4422e99b3c7643f9dd9d9f0afb23fc8f (patch) | |
tree | 4aa219e73291310820dc1620706ae2e0780b1973 /wpa_supplicant/wps_supplicant.c | |
parent | f0d126d3398d211e94895cc62b56d95ddb2171ac (diff) | |
download | external_wpa_supplicant_8_ti-332d630a4422e99b3c7643f9dd9d9f0afb23fc8f.zip external_wpa_supplicant_8_ti-332d630a4422e99b3c7643f9dd9d9f0afb23fc8f.tar.gz external_wpa_supplicant_8_ti-332d630a4422e99b3c7643f9dd9d9f0afb23fc8f.tar.bz2 |
Use wpa_msg_ctrl() for WPS AP available events
No need to include these MSG_INFO level events in stdout/syslog,
so deliver them only to ctrl_iface monitors.
Diffstat (limited to 'wpa_supplicant/wps_supplicant.c')
-rw-r--r-- | wpa_supplicant/wps_supplicant.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c index e7b2a7a..f931de4 100644 --- a/wpa_supplicant/wps_supplicant.c +++ b/wpa_supplicant/wps_supplicant.c @@ -1071,11 +1071,14 @@ void wpas_wps_notify_scan_results(struct wpa_supplicant *wpa_s) if (!ie) continue; if (wps_is_selected_pbc_registrar(ie)) - wpa_msg(wpa_s, MSG_INFO, WPS_EVENT_AP_AVAILABLE_PBC); + wpa_msg_ctrl(wpa_s, MSG_INFO, + WPS_EVENT_AP_AVAILABLE_PBC); else if (wps_is_selected_pin_registrar(ie)) - wpa_msg(wpa_s, MSG_INFO, WPS_EVENT_AP_AVAILABLE_PIN); + wpa_msg_ctrl(wpa_s, MSG_INFO, + WPS_EVENT_AP_AVAILABLE_PIN); else - wpa_msg(wpa_s, MSG_INFO, WPS_EVENT_AP_AVAILABLE); + wpa_msg_ctrl(wpa_s, MSG_INFO, + WPS_EVENT_AP_AVAILABLE); wpabuf_free(ie); break; } |