From 0ef1e290ab59fde307b9355b153596b431403317 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 28 Apr 2015 00:12:36 +0300 Subject: [PATCH] WPS: Fix shorter authentication timeout during no-SelReg iteration Commit 5add4101626b23c11f073630770896465d9cc8f3 ('WPS: Use shorter authentication timeout during no-SelReg iteration') added a new condition on reducing the authentication timeout for the WPS AP iteration process. However, due it ended up copy-pasting an incorrect condition for this. This was supposed to apply for PIN-based config method advertisement, not PBC. Signed-off-by: Jouni Malinen --- wpa_supplicant/wpa_supplicant.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index aa8078888..06a169673 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -3098,7 +3098,8 @@ void wpa_supplicant_rx_eapol(void *ctx, const u8 *src_addr, wps_ie = wpa_bss_get_vendor_ie_multi( wpa_s->current_bss, WPS_IE_VENDOR_TYPE); - if (wps_ie && !wps_is_selected_pbc_registrar(wps_ie)) + if (wps_ie && + !wps_is_addr_authorized(wps_ie, wpa_s->own_addr, 1)) timeout = 10; wpabuf_free(wps_ie); }