From f648bc7d0d704b106396ed2d02715f50e3d5bc00 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 22 Sep 2010 11:50:15 -0700 Subject: [PATCH] WPS: Use blacklist more aggressively during WPS provisioning This allows more APs to be tried during the WPS timeout. --- wpa_supplicant/events.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index b0e1d3b29..dfded7d65 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -463,6 +463,11 @@ static struct wpa_ssid * wpa_scan_res_match(struct wpa_supplicant *wpa_s, } #ifdef CONFIG_WPS + if ((ssid->key_mgmt & WPA_KEY_MGMT_WPS) && e && e->count > 0) { + wpa_printf(MSG_DEBUG, " skip - blacklisted (WPS)"); + continue; + } + if (wpa && ssid->ssid_len == 0 && wpas_wps_ssid_wildcard_ok(wpa_s, ssid, bss)) check_ssid = 0;