From a54d554ff1495c6989edc093a468b69666564124 Mon Sep 17 00:00:00 2001 From: Eyal Shapira Date: Mon, 29 Oct 2012 07:08:23 +0200 Subject: Disable p2p on wlan0 (JB) This prevents P2P IEs from being added to probes of scans on the STA interface. These are not needed and prolong required channel dwell time and Tx of probes. This is somewhat of a hack but was a preferred approach on adding framework changes to add p2p_disabled=1 to p2p_supplicant.conf and not to wpa_supplicant.conf when both are created from the same template. Signed-off-by: Eyal Shapira --- wpa_supplicant/wpa_supplicant.c | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- cgit v1.1