diff options
author | Eyal Shapira <eyal@wizery.com> | 2012-10-25 15:24:10 +0200 |
---|---|---|
committer | Eyal Shapira <eyal@wizery.com> | 2012-10-29 11:14:08 +0200 |
commit | 25dec55e99994c197167d5db10d0efc0b04e707d (patch) | |
tree | f811c703527a83740847911bcf039fc276cc8417 /wpa_supplicant | |
parent | 597e897f23f6d8b0dcafe3fd2416cdcb5f20d0e3 (diff) | |
download | external_wpa_supplicant_8_ti-25dec55e99994c197167d5db10d0efc0b04e707d.zip external_wpa_supplicant_8_ti-25dec55e99994c197167d5db10d0efc0b04e707d.tar.gz external_wpa_supplicant_8_ti-25dec55e99994c197167d5db10d0efc0b04e707d.tar.bz2 |
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 <eyal@wizery.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r-- | wpa_supplicant/events.c | 3 |
1 files changed, 2 insertions, 1 deletions
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. |