Parcourir la source

P2P: Do not initialize bgscan on P2P interfaces

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>
David Spinadel il y a 11 ans
Parent
commit
aa10983004
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      wpa_supplicant/wpa_supplicant.c

+ 4 - 0
wpa_supplicant/wpa_supplicant.c

@@ -579,6 +579,10 @@ static void wpa_supplicant_start_bgscan(struct wpa_supplicant *wpa_s)
 		return;
 	if (wpa_s->current_ssid == wpa_s->bgscan_ssid)
 		return;
+#ifdef CONFIG_P2P
+	if (wpa_s->p2p_group_interface != NOT_P2P_GROUP_INTERFACE)
+		return;
+#endif /* CONFIG_P2P */
 
 	bgscan_deinit(wpa_s);
 	if (wpa_s->current_ssid) {