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:
parent
819f096f5b
commit
aa10983004
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue