aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wps_supplicant.c
diff options
context:
space:
mode:
authorJörg Krause <joerg.krause@embedded.rocks>2017-03-09 09:59:48 (GMT)
committerJouni Malinen <j@w1.fi>2017-03-11 08:56:58 (GMT)
commitacdf50219732ed85071c8ada89b096d2f3c230a0 (patch)
treef12f2977008151e99697b4a0ff51040348b0ffca /wpa_supplicant/wps_supplicant.c
parent15e5ee0b7559c9d7357a7c5b4f50f2f34b209ad1 (diff)
downloadhostap-acdf50219732ed85071c8ada89b096d2f3c230a0.zip
hostap-acdf50219732ed85071c8ada89b096d2f3c230a0.tar.gz
hostap-acdf50219732ed85071c8ada89b096d2f3c230a0.tar.bz2
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 <joerg.krause@embedded.rocks>
Diffstat (limited to 'wpa_supplicant/wps_supplicant.c')
-rw-r--r--wpa_supplicant/wps_supplicant.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index 78c455e..2117b00 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);