Search Linux Wireless

Re: [PATCH 08/21] cw1200: wsm.*, implementation of device high-level interface.

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

 



On Fri, 2012-03-02 at 09:34 +0100, Johannes Berg wrote:
> On Fri, 2012-03-02 at 02:41 +0100, Dmitry Tarnyagin wrote:
> > +/* ******************************************************************** */
> > +/* Queue mapping: WSM <---> linux					*/
> > +/* Linux: VO VI BE BK							*/
> > +/* WSM:   BE BK VI VO							*/
> > +
> > +static inline u8 wsm_queue_id_to_linux(u8 queueId)
> > +{
> > +	static const u8 queue_mapping[] = {
> > +		2, 3, 1, 0
> > +	};
> > +	return queue_mapping[queueId];
> > +}
> 
> This could use the IEEE80211_AC_* defines I think.

I suppose it could also range check or use an
enum for queueId.

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

  Powered by Linux