From: Jörg Krause Date: Thu, 9 Mar 2017 09:59:48 +0000 (+0100) Subject: WPS: Notify about WPS PBC event in Enrollee mode X-Git-Tag: hostap_2_7~1470 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=acdf50219732ed85071c8ada89b096d2f3c230a0;p=thirdparty%2Fhostap.git WPS: Notify about WPS PBC event in Enrollee mode Previously, the event "WPS-PBC-ACTIVE" was only generated when wpa_supplicant is operating as WPS Registrar whereas "WPS-SUCCESS" or "WPS-TIMEOUT" are generated for both, the Registrar and the Enrollee roles. Also generate the event when wpa_supplicant is operating as WPS Enrollee to allow monitoring the begin and the end of a WPS PBC process. Signed-off-by: Jörg Krause --- diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c index 78c455e75..2117b009f 100644 --- a/wpa_supplicant/wps_supplicant.c +++ b/wpa_supplicant/wps_supplicant.c @@ -1168,6 +1168,7 @@ int wpas_wps_start_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid, return -1; if (wpa_s->wps_fragment_size) ssid->eap.fragment_size = wpa_s->wps_fragment_size; + wpa_supplicant_wps_event(wpa_s, WPS_EV_PBC_ACTIVE, NULL); eloop_register_timeout(WPS_PBC_WALK_TIME, 0, wpas_wps_timeout, wpa_s, NULL); wpas_wps_reassoc(wpa_s, ssid, bssid, 0);