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