Patchwork P2P: do not init bgscan on P2P interfaces

login
register
mail settings
Submitter Ilan Peer
Date March 3, 2014, 12:53 p.m.
Message ID <1393851204-964-4-git-send-email-ilan.peer@intel.com>
Download mbox | patch
Permalink /patch/325806/
State Accepted
Headers show

Comments

Ilan Peer - March 3, 2014, 12:53 p.m.
From: David Spinadel <david.spinadel@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@intel.com>
---
 wpa_supplicant/wpa_supplicant.c |    2 ++
 1 file changed, 2 insertions(+)
Jouni Malinen - March 4, 2014, 9:42 p.m.
On Mon, Mar 03, 2014 at 02:53:20PM +0200, Ilan Peer wrote:
> As a P2P group has a unique SSID and one security domain, it does
> not make sense to enable background scanning for roaming purposes.

Thanks, applied.

Patch

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) {