o move IEEE80211_NONQOS_TID into a public location

o add IEEE80211_TID_SIZE and replace all the nake constants

Approved by:	re (blanket wireless)
This commit is contained in:
Sam Leffler 2007-09-18 20:40:21 +00:00
parent 95032ab129
commit b337fbc435
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172225
3 changed files with 10 additions and 5 deletions

View File

@ -261,6 +261,9 @@ struct ieee80211_channel {
#define IEEE80211_FH_CHANSET(chan) ((chan)/IEEE80211_FH_CHANMOD+1)
#define IEEE80211_FH_CHANPAT(chan) ((chan)%IEEE80211_FH_CHANMOD)
#define IEEE80211_TID_SIZE (WME_NUM_TID+1) /* WME TID's +1 for non-QoS */
#define IEEE80211_NONQOS_TID WME_NUM_TID /* index for non-QoS sta */
/*
* 802.11 rate set.
*/

View File

@ -336,8 +336,9 @@ struct ieee80211req_sta_info {
uint16_t isi_associd; /* assoc response */
uint16_t isi_txpower; /* current tx power */
uint16_t isi_vlan; /* vlan tag */
uint16_t isi_txseqs[17]; /* seq to be transmitted */
uint16_t isi_rxseqs[17]; /* seq previous for qos frames*/
/* NB: [IEEE80211_NONQOS_TID] holds seq#'s for non-QoS stations */
uint16_t isi_txseqs[IEEE80211_TID_SIZE];/* tx seq #/TID */
uint16_t isi_rxseqs[IEEE80211_TID_SIZE];/* rx seq#/TID */
uint16_t isi_inact; /* inactivity timer */
/* XXX frag state? */
/* variable length IE data */

View File

@ -120,9 +120,10 @@ struct ieee80211_node {
uint8_t *ni_rsn_ie; /* captured RSN ie */
uint8_t *ni_wme_ie; /* captured WME ie */
uint8_t *ni_ath_ie; /* captured Atheros ie */
#define IEEE80211_NONQOS_TID 16 /* index for non-QoS sta */
uint16_t ni_txseqs[17]; /* tx seq per-tid */
uint16_t ni_rxseqs[17]; /* rx seq previous per-tid*/
/* tx seq per-tid */
uint16_t ni_txseqs[IEEE80211_TID_SIZE];
/* rx seq previous per-tid*/
uint16_t ni_rxseqs[IEEE80211_TID_SIZE];
uint32_t ni_rxfragstamp; /* time stamp of last rx frag */
struct mbuf *ni_rxfrag[3]; /* rx frag reassembly */
struct ieee80211_rsnparms ni_rsn; /* RSN/WPA parameters */