summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2007-06-17 09:05:45 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2007-06-17 09:05:45 +0000
commit45face1c0477354bef55981d4b43def793cd0a20 (patch)
treee483eba3bbb6bb6199e3bd7744fb8e0e80b4a115
parent604222f960c3381097434a0d314c745092bf9894 (diff)
keep track of the Tx/Rx sequence numbers for each TID in the
ieee80211_node structure. add a flag to indicate whether a STA is a QSTA or not.
-rw-r--r--sys/net80211/ieee80211.h5
-rw-r--r--sys/net80211/ieee80211_node.h5
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211.h b/sys/net80211/ieee80211.h
index 1c891425211..b983545776a 100644
--- a/sys/net80211/ieee80211.h
+++ b/sys/net80211/ieee80211.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211.h,v 1.16 2007/06/17 09:02:28 damien Exp $ */
+/* $OpenBSD: ieee80211.h,v 1.17 2007/06/17 09:05:44 damien Exp $ */
/* $NetBSD: ieee80211.h,v 1.6 2004/04/30 23:51:53 dyoung Exp $ */
/*-
@@ -418,6 +418,9 @@ enum ieee80211_edca_ac {
};
#define EDCA_NUM_AC 4
+/* number of TID values (traffic identifier) */
+#define IEEE80211_NUM_TID 16
+
/* Atheros private advanced capabilities info */
#define ATHEROS_CAP_TURBO_PRIME 0x01
#define ATHEROS_CAP_COMPRESSION 0x02
diff --git a/sys/net80211/ieee80211_node.h b/sys/net80211/ieee80211_node.h
index d2ac93973fc..b2aba6a609f 100644
--- a/sys/net80211/ieee80211_node.h
+++ b/sys/net80211/ieee80211_node.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_node.h,v 1.14 2007/06/16 13:21:44 damien Exp $ */
+/* $OpenBSD: ieee80211_node.h,v 1.15 2007/06/17 09:05:44 damien Exp $ */
/* $NetBSD: ieee80211_node.h,v 1.9 2004/04/30 22:57:32 dyoung Exp $ */
/*-
@@ -117,6 +117,8 @@ struct ieee80211_node {
u_int16_t ni_associd; /* assoc response */
u_int16_t ni_txseq; /* seq to be transmitted */
u_int16_t ni_rxseq; /* seq previous received */
+ u_int16_t ni_qos_txseqs[IEEE80211_NUM_TID];
+ u_int16_t ni_qos_rxseqs[IEEE80211_NUM_TID];
int ni_fails; /* failure count to associate */
int ni_inact; /* inactivity mark count */
int ni_txrate; /* index to ni_rates[] */
@@ -124,6 +126,7 @@ struct ieee80211_node {
u_int32_t *ni_challenge; /* shared-key challenge */
u_int8_t ni_flags; /* special-purpose state */
#define IEEE80211_NODE_ERP 0x01
+#define IEEE80211_NODE_QOS 0x02
};
RB_HEAD(ieee80211_tree, ieee80211_node);