[PATCH 1/1] P2P: Fix P2P configuration file name

Gautam gautams
Fri Jul 31 02:04:30 PDT 2015


The P2P configuration file is wrongly set as STA configuration file,
eventhough a separate configuration file is mentioned with '-m'
option.Add initialization and deallocation of global.params->conf_p2p_dev

Signed-off-by: Gautam <gautams at broadcom.com>
---
 wpa_supplicant/wpa_supplicant.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 3b107a1..ba3f6fc 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -4843,6 +4843,9 @@ struct wpa_global * wpa_supplicant_init(struct wpa_params *params)
 	if (params->override_ctrl_interface)
 		global->params.override_ctrl_interface =
 			os_strdup(params->override_ctrl_interface);
+	if (params->conf_p2p_dev)
+		global->params.conf_p2p_dev =
+			os_strdup(params->conf_p2p_dev);
 	wpa_debug_level = global->params.wpa_debug_level =
 		params->wpa_debug_level;
 	wpa_debug_show_keys = global->params.wpa_debug_show_keys =
@@ -4984,6 +4987,7 @@ void wpa_supplicant_deinit(struct wpa_global *global)
 	os_free(global->params.ctrl_interface_group);
 	os_free(global->params.override_driver);
 	os_free(global->params.override_ctrl_interface);
+	os_free(global->params.conf_p2p_dev);
 
 	os_free(global->p2p_disallow_freq.range);
 	os_free(global->p2p_go_avoid_freq.range);
-- 
1.7.9.5




More information about the Hostap mailing list