[PATCH] wpa_supplicant: don't start sched scan for p2p dev interfaces
Ilan Peer
ilan.peer
Mon Mar 3 04:53:23 PST 2014
From: Eliad Peller <eliad at wizery.com>
wpa_supplicant started delayed sched scan also on p2p dev interfaces,
resulting in erroneous scans and connection attempts.
Signed-off-by: Eliad Peller <eliadx.peller at intel.com>
---
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 006d6c1..78c242a 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -2671,7 +2671,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);
--
1.7.10.4
More information about the Hostap
mailing list