]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPS: Fix ap_scan=2 special association case
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 27 Oct 2014 18:13:39 +0000 (20:13 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 27 Oct 2014 18:13:39 +0000 (20:13 +0200)
Commit 22628eca3440976bf51846da0554099f7429b206 ('Support driver-based
BSS selection in ap_scan=1 mode') ended up disabling the special
ap_scan=2 WPS case where ap_scan=1 like scan followed by association is
used to find the WPS AP using wildcard SSID. Fix this by allowing
association request even with wpas_driver_bss_selection() when searching
for a WPS AP.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/wpa_supplicant.c

index db10d96eecf28ee4e322f780391e96d8a52322eb..517917fc831e1f1cc9485c88fb34aead077cd10e 100644 (file)
@@ -1611,7 +1611,8 @@ static void wpas_start_assoc_cb(struct wpa_radio_work *work, int deinit)
        os_memset(&params, 0, sizeof(params));
        wpa_s->reassociate = 0;
        wpa_s->eap_expected_failure = 0;
-       if (bss && !wpas_driver_bss_selection(wpa_s)) {
+       if (bss &&
+           (!wpas_driver_bss_selection(wpa_s) || wpas_wps_searching(wpa_s))) {
 #ifdef CONFIG_IEEE80211R
                const u8 *ie, *md = NULL;
 #endif /* CONFIG_IEEE80211R */