[PATCH] Android: Skip explicit conf_p2p_dev loading for main interface
Sun Sep 28 10:52:25 PDT 2014
On Sat, Sep 27, 2014 at 10:23 PM, Peer, Ilan <ilan.peer at intel.com> wrote:
> > -----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).
1) iface->p2p_mgmt will be set later.
2) In case p2p has separate Netdev - it will have its own iterface, in case
for Non-netdev it will still load this file
taking it from parent. Can you please describe the situation when we need
to load this file for main interface?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Hostap