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>
This commit is contained in:
parent
c4a8c173b8
commit
f1a613118e
5 changed files with 9 additions and 20 deletions
|
@ -403,11 +403,6 @@ static void wpa_supplicant_cleanup(struct wpa_supplicant *wpa_s)
|
|||
os_free(wpa_s->confanother);
|
||||
wpa_s->confanother = NULL;
|
||||
|
||||
#ifdef CONFIG_P2P
|
||||
os_free(wpa_s->conf_p2p_dev);
|
||||
wpa_s->conf_p2p_dev = NULL;
|
||||
#endif /* CONFIG_P2P */
|
||||
|
||||
wpa_sm_set_eapol(wpa_s->wpa, NULL);
|
||||
eapol_sm_deinit(wpa_s->eapol);
|
||||
wpa_s->eapol = NULL;
|
||||
|
@ -3653,11 +3648,6 @@ static int wpa_supplicant_init_iface(struct wpa_supplicant *wpa_s,
|
|||
wpa_s->confanother = os_rel2abs_path(iface->confanother);
|
||||
wpa_config_read(wpa_s->confanother, wpa_s->conf);
|
||||
|
||||
#ifdef CONFIG_P2P
|
||||
wpa_s->conf_p2p_dev = os_rel2abs_path(iface->conf_p2p_dev);
|
||||
wpa_config_read(wpa_s->conf_p2p_dev, wpa_s->conf);
|
||||
#endif /* CONFIG_P2P */
|
||||
|
||||
/*
|
||||
* Override ctrl_interface and driver_param if set on command
|
||||
* line.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue