P2P: Use only the -m config for P2P management device
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 3 Oct 2014 19:50:21 +0000 (22:50 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 3 Oct 2014 19:50:21 +0000 (22:50 +0300)
commitf1a613118ed51f3ecbaab8940744f4ff205c2e67
tree2f326495bf197cf9a5071e0bbbf056e143567415
parentc4a8c173b8030cca292df16ba93c6504bb24f4f8
P2P: Use only the -m config for P2P management device

Previously, the case of non-netdev P2P management device ended up
pulling in both the main interface (e.g., wlan0) and P2P Device
interface (from command line -m argument) as configuration. Similarly,
the main interface ended up included both configuration files. This is
not really helpful for various use cases, e.g., when permanent P2P group
information is stored in the P2P Devince interface, but it gets
duplicated in the main station interface configuration.

Clean this up by changing the -m<file> argument to replace, not
concatenate, configuration information. In other words, the main station
interface will not read this configuration and the P2P Device interface
(non-netdev) does not read parameters from the station interface
configuration file.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/main.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/p2p_supplicant.h
wpa_supplicant/wpa_supplicant.c
wpa_supplicant/wpa_supplicant_i.h