OSDN Git Service

Fix supplicant crash at group removal
authorIrfan Sheriff <isheriff@google.com>
Wed, 6 Jun 2012 17:45:04 +0000 (10:45 -0700)
committerIrfan Sheriff <isheriff@google.com>
Wed, 6 Jun 2012 19:13:34 +0000 (12:13 -0700)
Bug: 6613470
Change-Id: Ia96694ce906414b3f56cd57416d7c4c6f2030a6e

wpa_supplicant/p2p_supplicant.c

index 68b3c9b..5f1329e 100644 (file)
@@ -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
        }
 }