P2P: Fix crash when failed to create GO interface
[mech_eap.git] / wpa_supplicant / ap.c
index c2fb215..fdbe248 100644 (file)
@@ -505,11 +505,6 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
 
        if (wpa_drv_associate(wpa_s, &params) < 0) {
                wpa_msg(wpa_s, MSG_INFO, "Failed to start AP functionality");
-#ifdef CONFIG_P2P
-               if (ssid->mode == WPAS_MODE_P2P_GROUP_FORMATION &&
-                   wpa_s->global->p2p_group_formation == wpa_s)
-                       wpas_p2p_group_formation_failed(wpa_s->parent);
-#endif /* CONFIG_P2P */
                return -1;
        }