Search Linux Wireless

Re: [RFC 1/3] cfg80211: Add support for HE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Arend,

On Fri, 2018-05-25 at 13:11 +0300, Luca Coelho wrote:
> On Mon, 2018-05-21 at 21:47 +0200, Arend van Spriel wrote:
> > On 5/18/2018 4:05 PM, Luca Coelho wrote:
> > > @@ -781,6 +783,23 @@ int wiphy_register(struct wiphy *wiphy)
> > >   			sband->channels[i].band = band;
> > >   		}
> > > 
> > > +		for (i = 0; i < sband->n_iftype_data; i++) {
> > > +			const struct ieee80211_sband_iftype_data
> > > *iftd;
> > > +
> > > +			iftd = &sband->iftype_data[i];
> > > +
> > > +			if (WARN_ON(!iftd->types))
> > > +				return -EINVAL;
> > > +			if (WARN_ON(types & iftd->types))
> > > +				return -EINVAL;
> > 
> > I suspected the types mask was not allowed to overlap for the 
> > iftype_data entries, but may be worth documenting that in struct 
> > ieee80211_sband_iftype_data kerneldoc.
> 
> Sure, I'll add it.

Actually, looking into this again, I'm not sure I understand your
comment.  AFAICT this prevents the same type from appearing twice,
right? I don't get the "not allowed to overlap"... Can you clarify?

--
Cheers,
Luca.



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux