aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorRashmi Ramanna <c_ramanr@qti.qualcomm.com>2013-11-12 14:17:35 (GMT)
committerJouni Malinen <j@w1.fi>2013-11-20 14:35:30 (GMT)
commit6fc48481e41fde6e445b9bcc71a770d663dfb618 (patch)
treeca6e8b34dbc4163aa7966927ac62ec8aa2f17791 /wpa_supplicant/events.c
parent93a06fe103932167afeff61953239925221832b9 (diff)
downloadhostap-6fc48481e41fde6e445b9bcc71a770d663dfb618.zip
hostap-6fc48481e41fde6e445b9bcc71a770d663dfb618.tar.gz
hostap-6fc48481e41fde6e445b9bcc71a770d663dfb618.tar.bz2
P2P: Short scan wait to speed up the group re-invocation
The shorter 250 ms wait for the next scan request can be used also for the case of persistent group re-invocation instead of just formation of a new group. This speeds up the process and makes this more robust especially in cases where the GO is using MCC. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index b70e1fb..35712e5 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1353,10 +1353,12 @@ static int wpas_select_network_from_last_scan(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.
+ * state and during P2P join-a-group operation
+ * to speed up group formation.
*/
timeout_sec = 0;
timeout_usec = 250000;