P2P: Allow P2P functionality to be disabled per interface
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 10 Oct 2012 10:08:23 +0000 (13:08 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 10 Oct 2012 10:08:23 +0000 (13:08 +0300)
commit7a808c7eb70e213164f250645ef65231fc8a1590
tree9278d1d50935f5f4c6fc48125ed4ed8c298df89c
parentd86a33853efe9bb3c09c4431fa77673620649c05
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>
wpa_supplicant/config.c
wpa_supplicant/config.h
wpa_supplicant/config_file.c
wpa_supplicant/scan.c