From: Jouni Malinen Date: Thu, 9 Aug 2012 19:54:00 +0000 (+0300) Subject: AOSP: Delay group formation timeout X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c2be21e918e3ec5610fcbd2aa9891e6bc2d29a9;p=thirdparty%2Fhostap.git AOSP: Delay group formation timeout --- diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 68b3c9b75..5f1329e1d 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 } }