From c7dafdf9b0df75930ee36b06a006e6f3e22126d3 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 24 May 2015 10:33:26 +0300 Subject: [PATCH] WPS: Fix build without CONFIG_WPS=y Commit 5add4101626b23c11f073630770896465d9cc8f3 ('WPS: Use shorter authentication timeout during no-SelReg iteration') broke the build with WPS disabled. Signed-off-by: Jouni Malinen --- wpa_supplicant/wpa_supplicant.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 06a169673..874eb48fd 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -3086,6 +3086,7 @@ void wpa_supplicant_rx_eapol(void *ctx, const u8 *src_addr, timeout = 70; } +#ifdef CONFIG_WPS if (wpa_s->current_ssid && wpa_s->current_bss && (wpa_s->current_ssid->key_mgmt & WPA_KEY_MGMT_WPS) && eap_is_wps_pin_enrollee(&wpa_s->current_ssid->eap)) { @@ -3103,6 +3104,7 @@ void wpa_supplicant_rx_eapol(void *ctx, const u8 *src_addr, timeout = 10; wpabuf_free(wps_ie); } +#endif /* CONFIG_WPS */ wpa_supplicant_req_auth_timeout(wpa_s, timeout, 0); }