aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorEyal Shapira <eyal@wizery.com>2012-03-01 14:01:44 +0200
committerArik Nemtsov <arik@wizery.com>2012-08-02 13:01:43 +0300
commit35eb62a39694b6091fd71fc63d1331536099c9dd (patch)
treee797ee120caafcd6b04d398da4d3fef2c908d831 /wpa_supplicant
parente1c164dc09e7a8bef218cbf07721cc91f20da9ba (diff)
downloadexternal_wpa_supplicant_8_ti-35eb62a39694b6091fd71fc63d1331536099c9dd.zip
external_wpa_supplicant_8_ti-35eb62a39694b6091fd71fc63d1331536099c9dd.tar.gz
external_wpa_supplicant_8_ti-35eb62a39694b6091fd71fc63d1331536099c9dd.tar.bz2
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.
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/wps_supplicant.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index 5dcfd2a..38de877 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -1397,6 +1397,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));