diff options
-rw-r--r-- | wpa_supplicant/wpa_supplicant.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index e36ada0..c2300dc 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -2845,10 +2845,13 @@ next_driver: } #ifdef CONFIG_P2P - if (wpas_p2p_init(wpa_s->global, wpa_s) < 0) { - wpa_msg(wpa_s, MSG_ERROR, "Failed to init P2P"); - return -1; - } +#ifdef ANDROID + if (os_strncmp(iface->ifname, "p2p0", 4) == 0) +#endif /* ANDROID */ + if (wpas_p2p_init(wpa_s->global, wpa_s) < 0) { + wpa_msg(wpa_s, MSG_ERROR, "Failed to init P2P"); + return -1; + } #endif /* CONFIG_P2P */ if (wpa_bss_init(wpa_s) < 0) |