]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Use wpa_msg_ctrl() for WPS AP available events
authorJouni Malinen <j@w1.fi>
Sun, 27 Dec 2009 22:44:10 +0000 (00:44 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 27 Dec 2009 22:44:10 +0000 (00:44 +0200)
No need to include these MSG_INFO level events in stdout/syslog,
so deliver them only to ctrl_iface monitors.

wpa_supplicant/wps_supplicant.c

index e7b2a7aa205b1e4fa60280dedecc5971c60465bb..f931de45e1bfd0c12aac88ea7f13a3d9505a51ab 100644 (file)
@@ -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;
        }