[PATCH] P2P: do not init bgscan on P2P interfaces

Ilan Peer ilan.peer at intel.com
Mon Mar 3 07:53:20 EST 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)
 	if (wpa_s->current_ssid == wpa_s->bgscan_ssid)
+	if (wpa_s->p2p_group_interface != NOT_P2P_GROUP_INTERFACE)
+		return;
 	if (wpa_s->current_ssid) {

More information about the HostAP mailing list