-/* $OpenBSD: ieee80211_input.c,v 1.88 2008/08/02 08:20:16 damien Exp $ */
+/* $OpenBSD: ieee80211_input.c,v 1.89 2008/08/02 08:35:48 damien Exp $ */
/*-
* Copyright (c) 2001 Atsushi Onoe
if (dir == IEEE80211_FC1_DIR_DSTODS) {
struct ieee80211_qosframe_addr4 *qwh4 =
(struct ieee80211_qosframe_addr4 *)wh;
- tid = qwh4->i_qos[0] & IEEE80211_QOS_TID;
+ tid = qwh4->i_qos[0] & 0x0f;
} else {
struct ieee80211_qosframe *qwh =
(struct ieee80211_qosframe *)wh;
- tid = qwh->i_qos[0] & IEEE80211_QOS_TID;
+ tid = qwh->i_qos[0] & 0x0f;
}
orxseq = &ni->ni_qos_rxseqs[tid];
} else
-/* $OpenBSD: ieee80211_output.c,v 1.65 2008/08/02 08:33:21 damien Exp $ */
+/* $OpenBSD: ieee80211_output.c,v 1.66 2008/08/02 08:35:48 damien Exp $ */
/* $NetBSD: ieee80211_output.c,v 1.13 2004/05/31 11:02:55 dyoung Exp $ */
/*-
struct ieee80211_qosframe *qwh =
(struct ieee80211_qosframe *)wh;
qwh->i_fc[0] |= IEEE80211_FC0_SUBTYPE_QOS;
- qwh->i_qos[0] = tid & IEEE80211_QOS_TID;
+ qwh->i_qos[0] = tid & 0xf;
qwh->i_qos[1] = 0; /* no TXOP requested */
*(u_int16_t *)&qwh->i_seq[0] =
htole16(ni->ni_qos_txseqs[tid] << IEEE80211_SEQ_SEQ_SHIFT);