diff mbox

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

Message ID a94af1d84d1546ed80d37093e0dab92da2662997.1438248198.git.gautams@broadcom.com
State Superseded
Headers show

Commit Message

Gautam (Gautam Kumar) Shukla July 30, 2015, 9:40 a.m. UTC
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@broadcom.com>
---
 wpa_supplicant/wpa_supplicant.c |    3 +++
 1 file changed, 3 insertions(+)

Comments

Peer, Ilan July 30, 2015, 4:35 p.m. UTC | #1
Good catch.

> -----Original Message-----
> From: hostap-bounces@lists.shmoo.com [mailto:hostap-
> bounces@lists.shmoo.com] On Behalf Of Gautam
> Sent: Thursday, July 30, 2015 12:40
> To: hostap@lists.shmoo.com
> Subject: [PATCH 1/1] P2P: Fix P2P configuration file name
> 
> 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@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);

Need to also free the allocated memory in deinit().

Regards,

Ilan.
diff mbox

Patch

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 =