[PATCH] For concurrency scenarios we should not update the scan re=
Neeraj Garg
neerajkg
Thu Apr 5 05:10:06 PDT 2012
sults without P2PIE to p2p group interface
Signed-off-by: Neeraj Garg <neerajkg at broadcom.com>
---
wpa_supplicant/bss.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
mode change 100644 =3D> 100755 wpa_supplicant/bss.c
diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c
old mode 100644
new mode 100755
index b79510e..cdae799
--- a/wpa_supplicant/bss.c
+++ b/wpa_supplicant/bss.c
@@ -379,6 +379,14 @@ void wpa_bss_update_scan_res(struct wpa_supplicant *wp=
a_s,
}
=20
p2p =3D wpa_scan_get_vendor_ie(res, P2P_IE_VENDOR_TYPE);
+ if (p2p =3D=3D NULL) {
+ if (wpa_s->p2p_group_interface !=3D NOT_P2P_GROUP_INTERFACE) {
+ /* If its a P2P specific interface, then don't update the scan
+ * result without a p2p IE. */
+ wpa_printf(MSG_DEBUG, "BSS: NO P2P IE skipping bss update for p2p inter=
face");
+ return;
+ }
+ }
if (p2p && ssid[1] =3D=3D P2P_WILDCARD_SSID_LEN &&
os_memcmp(ssid + 2, P2P_WILDCARD_SSID, P2P_WILDCARD_SSID_LEN) =3D=3D =
0)
return; /* Skip P2P listen discovery results here */
--=20
1.7.4.1
Regards,
-Neeraj
More information about the Hostap
mailing list