diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2012-10-10 13:08:23 +0300 |
---|---|---|
committer | Eyal Shapira <eyal@wizery.com> | 2012-10-29 11:14:08 +0200 |
commit | 82a982e0b80aa90ccfbb953aedc44fdc24de02ba (patch) | |
tree | 3508b480ab8371de8abbf695b791fe7d5b447e1a /wpa_supplicant/config.h | |
parent | e62ecda1b94b2b07dfce877654b10c6ff8c46857 (diff) | |
download | external_wpa_supplicant_8_ti-82a982e0b80aa90ccfbb953aedc44fdc24de02ba.zip external_wpa_supplicant_8_ti-82a982e0b80aa90ccfbb953aedc44fdc24de02ba.tar.gz external_wpa_supplicant_8_ti-82a982e0b80aa90ccfbb953aedc44fdc24de02ba.tar.bz2 |
P2P: Allow P2P functionality to be disabled per interface
By default, P2P is enabled globally for all virtual interfaces and this
makes wpa_supplicant include WSC and P2P IEs in Probe Request frames for
all scans even if this is for a non-P2P station connection to speed up
device discovery. If an interface is dedicated for non-P2P station mode
operations, it is now possible to disable addition of WSC and P2P IEs
into Probe Request frames with a per-interface p2p_disabled parameter.
This can be set either in the configuration file (p2p_disabled=1) or at
run time ("wpa_cli -i wlan0 set p2p_disabled 1"). Unlike the previous
mechanism ("wpa_cli p2p_set disabled 1"), the new parameter changes the
behavior only for the specified interface while other interfaces
continue to follow the global P2P enabled/disabled state.
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Eyal Shapira <eyal@wizery.com>
Diffstat (limited to 'wpa_supplicant/config.h')
-rw-r--r-- | wpa_supplicant/config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/config.h b/wpa_supplicant/config.h index eb7dbf0..31e7a9a 100644 --- a/wpa_supplicant/config.h +++ b/wpa_supplicant/config.h @@ -743,6 +743,10 @@ struct wpa_config { */ int p2p_conc_mode; #endif + /* + * p2p_disabled - Whether P2P operations are disabled for this interface + */ + int p2p_disabled; }; |