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

Peer, Ilan ilan.peer
Thu Jul 30 09:35:20 PDT 2015


Good catch.

> -----Original Message-----
> From: hostap-bounces at lists.shmoo.com [mailto:hostap-
> bounces at lists.shmoo.com] On Behalf Of Gautam
> Sent: Thursday, July 30, 2015 12:40
> To: hostap at 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 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);

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

Regards,

Ilan.



More information about the Hostap mailing list