From: Eyal Shapira Date: Thu, 1 Mar 2012 12:01:44 +0000 (+0200) Subject: P2P: Ignore PBC overlap in P2P provisioning X-Git-Url: https://git.ti.com/gitweb?p=build-utilities%2Fhostap.git;a=commitdiff_plain;h=8b5491370aac100cd960f767aca0b6c3cfef7325;ds=sidebyside P2P: Ignore PBC overlap in P2P provisioning PBC overlap can be ignored as the P2P client knows that it should connect to the P2P GO so no point of failing the WPS session in case of overlap because some other AP had WPS PBC on at the same time. --- diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c index 49654399..b6bc9b51 100644 --- a/wpa_supplicant/wps_supplicant.c +++ b/wpa_supplicant/wps_supplicant.c @@ -1370,6 +1370,14 @@ int wpas_wps_scan_pbc_overlap(struct wpa_supplicant *wpa_s, if (!eap_is_wps_pbc_enrollee(&ssid->eap)) return 0; +#ifdef CONFIG_P2P + if (wpa_s->p2p_in_provisioning) { + wpa_printf(MSG_DEBUG, + "WPS: Don't check for PBC overlap in P2P"); + return 0; + } +#endif + wpa_printf(MSG_DEBUG, "WPS: Check whether PBC session overlap is " "present in scan results; selected BSSID " MACSTR, MAC2STR(selected->bssid));