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

Gautam gautams
Thu Jul 30 02:40:29 PDT 2015


The P2P configuration file is wrongly set as STA configuration file,
eventhough a separate configuration file is mentioned with '-m' option.

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

diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 3b107a1..66bb9cd 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 =
-- 
1.7.9.5




More information about the Hostap mailing list