Search Linux Wireless

Re: [PATCH 02/10] mt76: move mt76x02_rx_get_sta and mt76x02_rx_get_sta_wcid in mt76x02_util.c

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

 



> >  EXPORT_SYMBOL_GPL(mt76x02_set_beacon_offsets);
> >  
> > +struct mt76x02_sta *
> > +mt76x02_rx_get_sta(struct mt76_dev *dev, u8 idx)
> > +{
> > +	struct mt76_wcid *wcid;
> > +
> > +	if (idx >= ARRAY_SIZE(dev->wcid))
> > +		return NULL;
> > +
> > +	wcid = rcu_dereference(dev->wcid[idx]);
> > +	if (!wcid)
> > +		return NULL;
> > +
> > +	return container_of(wcid, struct mt76x02_sta, wcid);
> > +}
> > +EXPORT_SYMBOL_GPL(mt76x02_rx_get_sta);
> > +
> > +struct mt76_wcid *
> > +mt76x02_rx_get_sta_wcid(struct mt76x02_sta *sta, bool unicast)
> > +{
> > +	if (!sta)
> > +		return NULL;
> > +
> > +	if (unicast)
> > +		return &sta->wcid;
> > +	else
> > +		return &sta->vif->group_wcid;
> > +}
> > +EXPORT_SYMBOL_GPL(mt76x02_rx_get_sta_wcid);
> Both of these functions are trivial and should be inline.

ack, will do in v2.
Regards,

Lorenzo

> 
> - Felix



[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