aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-08-09 19:54:00 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-09 20:18:32 (GMT)
commit2c2be21e918e3ec5610fcbd2aa9891e6bc2d29a9 (patch)
treeab276e665a077eafb6822b9e7d6b75bdaebb41cf
parent734f98d4d154af9a7397bd47529ca66d9dac6d2b (diff)
downloadhostap-2c2be21e918e3ec5610fcbd2aa9891e6bc2d29a9.zip
hostap-2c2be21e918e3ec5610fcbd2aa9891e6bc2d29a9.tar.gz
hostap-2c2be21e918e3ec5610fcbd2aa9891e6bc2d29a9.tar.bz2
AOSP: Delay group formation timeout
-rw-r--r--wpa_supplicant/p2p_supplicant.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index 68b3c9b..5f1329e 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -4424,7 +4424,13 @@ void wpas_p2p_network_removed(struct wpa_supplicant *wpa_s,
wpa_s->parent, NULL) > 0) {
wpa_printf(MSG_DEBUG, "P2P: Canceled group formation due to "
"P2P group network getting removed");
+#ifdef ANDROID_P2P
+ /* Give time for any Pending WPS Frame exchange */
+ eloop_register_timeout(5, 0, wpas_p2p_group_formation_timeout,
+ wpa_s->parent, NULL);
+#else
wpas_p2p_group_formation_timeout(wpa_s->parent, NULL);
+#endif
}
}