]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPS: Notify about WPS PBC event in Enrollee mode
authorJörg Krause <joerg.krause@embedded.rocks>
Thu, 9 Mar 2017 09:59:48 +0000 (10:59 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 11 Mar 2017 08:56:58 +0000 (10:56 +0200)
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 <joerg.krause@embedded.rocks>
wpa_supplicant/wps_supplicant.c

index 78c455e755ab0a50213ab97fb7d4ae7528595e71..2117b009f70a33eed9f0d2ea9b6ba3943b71af13 100644 (file)
@@ -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);