From 25dec55e99994c197167d5db10d0efc0b04e707d Mon Sep 17 00:00:00 2001 From: Eyal Shapira Date: Thu, 25 Oct 2012 15:24:10 +0200 Subject: P2P: speed up scans when connecting to persistent GO (UPSTREAM) In the case of a persistent GO invoking a P2P group by invite the P2P client starts scanning for the GO but it might still not be up. If not found the next scan is scheduled for scan_interval secs but this too long. Speed up scans to find GO like it's being done in P2P provisioing. Signed-off-by: Eyal Shapira --- wpa_supplicant/events.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 0ac8641..7f46a4f 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -1219,7 +1219,8 @@ static int _wpa_supplicant_event_scan_results(struct wpa_supplicant *wpa_s, if (wpas_p2p_scan_no_go_seen(wpa_s) == 1) return 0; - if (wpa_s->p2p_in_provisioning) { + if (wpa_s->p2p_in_provisioning || + wpa_s->show_group_started) { /* * Use shorter wait during P2P Provisioning * state to speed up group formation. -- cgit v1.1