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>
This commit is contained in:
David Spinadel 2014-03-03 14:53:20 +02:00 committed by Jouni Malinen
parent 819f096f5b
commit aa10983004

View file

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