From 3a94adbf4244834ad11c93fa51703fcdc7c1278a Mon Sep 17 00:00:00 2001 From: Eliad Peller Date: Mon, 3 Mar 2014 14:53:23 +0200 Subject: [PATCH] P2P: Do not start scan for P2P Device interfaces at driver init wpa_supplicant started delayed sched scan also on P2P Device interfaces, resulting in erroneous scans and connection attempts. Skip that on driver init when the interface is dedicated only for P2P management purposes. Signed-off-by: Eliad Peller --- wpa_supplicant/wpa_supplicant.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 675d9ac03..46195b158 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -2673,7 +2673,8 @@ int wpa_supplicant_driver_init(struct wpa_supplicant *wpa_s) wpa_supplicant_set_state(wpa_s, WPA_DISCONNECTED); interface_count = 0; } - if (wpa_supplicant_delayed_sched_scan(wpa_s, interface_count, + if (!wpa_s->p2p_mgmt && + wpa_supplicant_delayed_sched_scan(wpa_s, interface_count, 100000)) wpa_supplicant_req_scan(wpa_s, interface_count, 100000);