diff --git a/wpa_supplicant/main.c b/wpa_supplicant/main.c index d495ec167..39b837e58 100644 --- a/wpa_supplicant/main.c +++ b/wpa_supplicant/main.c @@ -307,11 +307,13 @@ int main(int argc, char *argv[]) exitcode = -1; break; } +#ifdef CONFIG_P2P if (wpa_s->global->p2p == NULL && (wpa_s->drv_flags & WPA_DRIVER_FLAGS_DEDICATED_P2P_DEVICE) && wpas_p2p_add_p2pdev_interface(wpa_s) < 0) exitcode = -1; +#endif /* CONFIG_P2P */ } if (exitcode == 0)