[PATCH 6/6] driver_nl80211: use p2p interface types

Johannes Berg johannes
Fri Sep 17 11:18:47 PDT 2010


On Fri, 2010-09-17 at 20:16 +0200, Johannes Berg wrote:

> > @@ -4125,6 +4152,7 @@ static int wpa_driver_nl80211_associate(
> >  	struct wpa_driver_nl80211_data *drv = bss->drv;
> >  	int ret = -1;
> >  	struct nl_msg *msg;
> > +	enum nl80211_iftype wanted_iftype = NL80211_IFTYPE_STATION;
> >  
> >  	if (params->mode == IEEE80211_MODE_AP)
> >  		return wpa_driver_nl80211_ap(drv, params);
> > @@ -4132,8 +4160,11 @@ static int wpa_driver_nl80211_associate(
> >  	if (params->mode == IEEE80211_MODE_IBSS)
> >  		return wpa_driver_nl80211_ibss(drv, params);
> >  
> > +	if (params->p2p)
> > +		wanted_iftype = NL80211_IFTYPE_P2P_CLIENT;
> 
> This (and probably the corresponding AP code?) will _always_ select p2p,
> because params->p2p will be set to true whenever p2p support is compiled
> in, and wpa_s is configured with p2p support

Never mind the configuration bit, it's just when global->p2p is
initialized. Also, I notice that 11b rates are disabled whenever p2p is
initialized? That can't be right? What am I missing?

johannes




More information about the Hostap mailing list