aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEyal Shapira <eyal@wizery.com>2012-10-29 07:08:23 +0200
committerEyal Shapira <eyal@wizery.com>2012-10-29 11:14:08 +0200
commita54d554ff1495c6989edc093a468b69666564124 (patch)
tree3e7494f22d00a02f03b4627d0ee2e188ca4530d8
parent82a982e0b80aa90ccfbb953aedc44fdc24de02ba (diff)
downloadexternal_wpa_supplicant_8_ti-a54d554ff1495c6989edc093a468b69666564124.zip
external_wpa_supplicant_8_ti-a54d554ff1495c6989edc093a468b69666564124.tar.gz
external_wpa_supplicant_8_ti-a54d554ff1495c6989edc093a468b69666564124.tar.bz2
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 <eyal@wizery.com>
-rw-r--r--wpa_supplicant/wpa_supplicant.c5
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) {