[PATCH] P2P: do not init bgscan on P2P interfaces
Ilan Peer
ilan.peer
Mon Mar 3 04:53:20 PST 2014
From: David Spinadel <david.spinadel at intel.com>
As a P2P group has a unique SSID and one security domain, it does
not make sense to enable background scanning for roaming purposes.
Signed-off-by: David Spinadel <david.spinadel at intel.com>
---
wpa_supplicant/wpa_supplicant.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 065b2f6..006d6c1 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -579,6 +579,8 @@ static void wpa_supplicant_start_bgscan(struct wpa_supplicant *wpa_s)
return;
if (wpa_s->current_ssid == wpa_s->bgscan_ssid)
return;
+ if (wpa_s->p2p_group_interface != NOT_P2P_GROUP_INTERFACE)
+ return;
bgscan_deinit(wpa_s);
if (wpa_s->current_ssid) {
--
1.7.10.4
More information about the Hostap
mailing list