diff options
-rw-r--r-- | wpa_supplicant/wpa_supplicant.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 73ffde8..911a593 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -2849,6 +2849,11 @@ next_driver: #ifdef CONFIG_P2P #ifdef ANDROID + if (os_strncmp(iface->ifname, "wlan0", 4) == 0) { + wpa_printf(MSG_DEBUG, "Disable P2P on wlan0"); + wpa_s->conf->p2p_disabled = 1; + } + if (os_strncmp(iface->ifname, "p2p0", 4) == 0) #endif /* ANDROID */ if (wpas_p2p_init(wpa_s->global, wpa_s) < 0) { |