[PATCH] Android: Skip explicit conf_p2p_dev loading for main interface

Peer, Ilan ilan.peer at intel.com
Sun Sep 28 01:23:02 EDT 2014



> -----Original Message-----
> From: hostap-bounces at lists.shmoo.com [mailto:hostap-
> bounces at lists.shmoo.com] On Behalf Of Dmitry Shmidt
> Sent: Wednesday, September 24, 2014 20:39
> To: hostap at lists.shmoo.com
> Subject: [PATCH] Android: Skip explicit conf_p2p_dev loading for main
> interface
> 
> It will be loaded later for Non-netdev p2p interface.
> 
> Change-Id: Ib53daf22c84f2581b499462dc09a74ccfbac226a
> Signed-off-by: Dmitry Shmidt <dimitrysh at google.com>
> ---
>  wpa_supplicant/wpa_supplicant.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/wpa_supplicant/wpa_supplicant.c
> b/wpa_supplicant/wpa_supplicant.c index f20bc62..9d21fe0 100644
> --- a/wpa_supplicant/wpa_supplicant.c
> +++ b/wpa_supplicant/wpa_supplicant.c
> @@ -3509,7 +3509,9 @@ static int wpa_supplicant_init_iface(struct
> wpa_supplicant *wpa_s,
> 
>  #ifdef CONFIG_P2P
>  		wpa_s->conf_p2p_dev = os_rel2abs_path(iface-
> >conf_p2p_dev);
> +#ifndef ANDROID_P2P
>  		wpa_config_read(wpa_s->conf_p2p_dev, wpa_s->conf);
> +#endif

I think it would be cleaner to do the reading only if iface->p2p_mgmt is set (happens only in case a dedicated P2P DEVICE interface is added).

Regards,

Ilan.


More information about the HostAP mailing list