diff options
author | Eyal Shapira <eyal@wizery.com> | 2012-10-29 07:08:23 +0200 |
---|---|---|
committer | Eyal Shapira <eyal@wizery.com> | 2012-10-29 11:14:08 +0200 |
commit | a54d554ff1495c6989edc093a468b69666564124 (patch) | |
tree | 3e7494f22d00a02f03b4627d0ee2e188ca4530d8 /wpa_supplicant | |
parent | 82a982e0b80aa90ccfbb953aedc44fdc24de02ba (diff) | |
download | external_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>
Diffstat (limited to 'wpa_supplicant')
-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) { |