WPS: Fix shorter authentication timeout during no-SelReg iteration

Commit 5add410162 ('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 <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2015-04-28 00:12:36 +03:00 committed by Jouni Malinen
parent 346517674a
commit 0ef1e290ab

View File

@ -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);
}