net80211 / drivers: rename to IEEE80211_FC0_SUBTYPE_QOS_DATA
Going through the Frame (Sub)types the "QOS Data" being called "QOS" scheme leads to a naming conflict for QOS_CFPOLL and QOS_CFACKPOLL (if added). Rename QOS* to QOS_DATA* to avoid the conflict and to also better match the standards name. No functional changes intended. Sponsored by: The FreeBSD Foundation MFC after: 5 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D36409
This commit is contained in:
parent
8def06d5af
commit
c9b7e9df18
@ -171,7 +171,7 @@ enum ieee80211_min_mpdu_start_spacing {
|
||||
#define IEEE80211_STYPE_AUTH IEEE80211_FC0_SUBTYPE_AUTH
|
||||
#define IEEE80211_STYPE_DEAUTH IEEE80211_FC0_SUBTYPE_DEAUTH
|
||||
#define IEEE80211_STYPE_ACTION IEEE80211_FC0_SUBTYPE_ACTION
|
||||
#define IEEE80211_STYPE_QOS_DATA IEEE80211_FC0_SUBTYPE_QOS
|
||||
#define IEEE80211_STYPE_QOS_DATA IEEE80211_FC0_SUBTYPE_QOS_DATA
|
||||
|
||||
#define IEEE80211_NUM_ACS 4 /* net8021::WME_NUM_AC */
|
||||
|
||||
@ -669,7 +669,7 @@ ieee80211_is_data_qos(__le16 fc)
|
||||
{
|
||||
__le16 v;
|
||||
|
||||
fc &= htole16(IEEE80211_FC0_SUBTYPE_QOS | IEEE80211_FC0_TYPE_MASK |
|
||||
fc &= htole16(IEEE80211_FC0_SUBTYPE_QOS_DATA | IEEE80211_FC0_TYPE_MASK |
|
||||
IEEE80211_FC0_VERSION_MASK);
|
||||
v = htole16(IEEE80211_FC0_QOSDATA);
|
||||
|
||||
@ -711,9 +711,9 @@ ieee80211_hdrlen(__le16 fc)
|
||||
if ((fc & htole16(IEEE80211_FC1_DIR_MASK << 8)) ==
|
||||
htole16(IEEE80211_FC1_DIR_DSTODS << 8))
|
||||
size += IEEE80211_ADDR_LEN;
|
||||
if ((fc & htole16(IEEE80211_FC0_SUBTYPE_QOS |
|
||||
if ((fc & htole16(IEEE80211_FC0_SUBTYPE_QOS_DATA |
|
||||
IEEE80211_FC0_TYPE_MASK)) ==
|
||||
htole16(IEEE80211_FC0_SUBTYPE_QOS |
|
||||
htole16(IEEE80211_FC0_SUBTYPE_QOS_DATA |
|
||||
IEEE80211_FC0_TYPE_DATA))
|
||||
size += sizeof(uint16_t);
|
||||
}
|
||||
|
@ -1443,7 +1443,7 @@ rt2661_tx_data(struct rt2661_softc *sc, struct mbuf *m0,
|
||||
}
|
||||
rate &= IEEE80211_RATE_VAL;
|
||||
|
||||
if (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_QOS)
|
||||
if (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_QOS_DATA)
|
||||
noack = !! ieee80211_wme_vap_ac_is_noack(vap, ac);
|
||||
|
||||
if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) {
|
||||
|
@ -158,10 +158,10 @@ struct ieee80211_qosframe_addr4 {
|
||||
#define IEEE80211_FC0_SUBTYPE_CFACK 0x50
|
||||
#define IEEE80211_FC0_SUBTYPE_CFPOLL 0x60
|
||||
#define IEEE80211_FC0_SUBTYPE_CF_ACK_CF_ACK 0x70
|
||||
#define IEEE80211_FC0_SUBTYPE_QOS 0x80
|
||||
#define IEEE80211_FC0_SUBTYPE_QOS_CFACK 0x90
|
||||
#define IEEE80211_FC0_SUBTYPE_QOS_CFPOLL 0xa0
|
||||
#define IEEE80211_FC0_SUBTYPE_QOS_CFACKPOLL 0xb0
|
||||
#define IEEE80211_FC0_SUBTYPE_QOS_DATA 0x80
|
||||
#define IEEE80211_FC0_SUBTYPE_QOS_DATA_CFACK 0x90
|
||||
#define IEEE80211_FC0_SUBTYPE_QOS_DATA_CFPOLL 0xa0
|
||||
#define IEEE80211_FC0_SUBTYPE_QOS_DATA_CFACKPOLL 0xb0
|
||||
#define IEEE80211_FC0_SUBTYPE_QOS_NULL 0xc0
|
||||
|
||||
#define IEEE80211_IS_MGMT(wh) \
|
||||
@ -175,7 +175,7 @@ struct ieee80211_qosframe_addr4 {
|
||||
== IEEE80211_FC0_TYPE_DATA))
|
||||
|
||||
#define IEEE80211_FC0_QOSDATA \
|
||||
(IEEE80211_FC0_TYPE_DATA|IEEE80211_FC0_SUBTYPE_QOS|IEEE80211_FC0_VERSION_0)
|
||||
(IEEE80211_FC0_TYPE_DATA|IEEE80211_FC0_SUBTYPE_QOS_DATA|IEEE80211_FC0_VERSION_0)
|
||||
|
||||
#define IEEE80211_IS_QOSDATA(wh) \
|
||||
((wh)->i_fc[0] == IEEE80211_FC0_QOSDATA)
|
||||
@ -247,8 +247,8 @@ struct ieee80211_qosframe_addr4 {
|
||||
/* does frame have QoS sequence control data */
|
||||
#define IEEE80211_QOS_HAS_SEQ(wh) \
|
||||
(((wh)->i_fc[0] & \
|
||||
(IEEE80211_FC0_TYPE_MASK | IEEE80211_FC0_SUBTYPE_QOS)) == \
|
||||
(IEEE80211_FC0_TYPE_DATA | IEEE80211_FC0_SUBTYPE_QOS))
|
||||
(IEEE80211_FC0_TYPE_MASK | IEEE80211_FC0_SUBTYPE_QOS_DATA)) == \
|
||||
(IEEE80211_FC0_TYPE_DATA | IEEE80211_FC0_SUBTYPE_QOS_DATA))
|
||||
|
||||
/*
|
||||
* WME/802.11e information element.
|
||||
|
@ -341,7 +341,7 @@ adhoc_input(struct ieee80211_node *ni, struct mbuf *m,
|
||||
wh = mtod(m, struct ieee80211_frame *);
|
||||
type = IEEE80211_FC0_TYPE_DATA;
|
||||
dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK;
|
||||
subtype = IEEE80211_FC0_SUBTYPE_QOS;
|
||||
subtype = IEEE80211_FC0_SUBTYPE_QOS_DATA;
|
||||
hdrspace = ieee80211_hdrspace(ic, wh); /* XXX optimize? */
|
||||
goto resubmit_ampdu;
|
||||
}
|
||||
@ -522,7 +522,7 @@ adhoc_input(struct ieee80211_node *ni, struct mbuf *m,
|
||||
/*
|
||||
* Save QoS bits for use below--before we strip the header.
|
||||
*/
|
||||
if (subtype == IEEE80211_FC0_SUBTYPE_QOS)
|
||||
if (subtype == IEEE80211_FC0_SUBTYPE_QOS_DATA)
|
||||
qos = ieee80211_getqos(wh)[0];
|
||||
else
|
||||
qos = 0;
|
||||
|
@ -862,7 +862,7 @@ michael_mic_hdr(const struct ieee80211_frame *wh0, uint8_t hdr[16])
|
||||
break;
|
||||
}
|
||||
|
||||
if (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_QOS) {
|
||||
if (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_QOS_DATA) {
|
||||
const struct ieee80211_qosframe *qwh =
|
||||
(const struct ieee80211_qosframe *) wh;
|
||||
hdr[12] = qwh->i_qos[0] & IEEE80211_QOS_TID;
|
||||
|
@ -507,7 +507,7 @@ hostap_input(struct ieee80211_node *ni, struct mbuf *m,
|
||||
wh = mtod(m, struct ieee80211_frame *);
|
||||
type = IEEE80211_FC0_TYPE_DATA;
|
||||
dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK;
|
||||
subtype = IEEE80211_FC0_SUBTYPE_QOS;
|
||||
subtype = IEEE80211_FC0_SUBTYPE_QOS_DATA;
|
||||
hdrspace = ieee80211_hdrspace(ic, wh); /* XXX optimize? */
|
||||
goto resubmit_ampdu;
|
||||
}
|
||||
@ -710,7 +710,7 @@ hostap_input(struct ieee80211_node *ni, struct mbuf *m,
|
||||
/*
|
||||
* Save QoS bits for use below--before we strip the header.
|
||||
*/
|
||||
if (subtype == IEEE80211_FC0_SUBTYPE_QOS)
|
||||
if (subtype == IEEE80211_FC0_SUBTYPE_QOS_DATA)
|
||||
qos = ieee80211_getqos(wh)[0];
|
||||
else
|
||||
qos = 0;
|
||||
|
@ -1816,7 +1816,7 @@ ieee80211_encap(struct ieee80211vap *vap, struct ieee80211_node *ni,
|
||||
else
|
||||
#endif
|
||||
qos[1] = 0;
|
||||
wh->i_fc[0] |= IEEE80211_FC0_SUBTYPE_QOS;
|
||||
wh->i_fc[0] |= IEEE80211_FC0_SUBTYPE_QOS_DATA;
|
||||
|
||||
/*
|
||||
* If this is an A-MSDU then ensure we set the
|
||||
|
@ -600,7 +600,7 @@ sta_input(struct ieee80211_node *ni, struct mbuf *m,
|
||||
*/
|
||||
type = IEEE80211_FC0_TYPE_DATA;
|
||||
dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK;
|
||||
subtype = IEEE80211_FC0_SUBTYPE_QOS;
|
||||
subtype = IEEE80211_FC0_SUBTYPE_QOS_DATA;
|
||||
hdrspace = ieee80211_hdrspace(ic, wh); /* XXX optimize? */
|
||||
goto resubmit_ampdu;
|
||||
}
|
||||
@ -794,7 +794,7 @@ sta_input(struct ieee80211_node *ni, struct mbuf *m,
|
||||
/*
|
||||
* Save QoS bits for use below--before we strip the header.
|
||||
*/
|
||||
if (subtype == IEEE80211_FC0_SUBTYPE_QOS)
|
||||
if (subtype == IEEE80211_FC0_SUBTYPE_QOS_DATA)
|
||||
qos = ieee80211_getqos(wh)[0];
|
||||
else
|
||||
qos = 0;
|
||||
|
@ -442,7 +442,7 @@ wds_input(struct ieee80211_node *ni, struct mbuf *m,
|
||||
wh = mtod(m, struct ieee80211_frame *);
|
||||
type = IEEE80211_FC0_TYPE_DATA;
|
||||
dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK;
|
||||
subtype = IEEE80211_FC0_SUBTYPE_QOS;
|
||||
subtype = IEEE80211_FC0_SUBTYPE_QOS_DATA;
|
||||
hdrspace = ieee80211_hdrspace(ic, wh); /* XXX optimize? */
|
||||
goto resubmit_ampdu;
|
||||
}
|
||||
@ -583,7 +583,7 @@ wds_input(struct ieee80211_node *ni, struct mbuf *m,
|
||||
/*
|
||||
* Save QoS bits for use below--before we strip the header.
|
||||
*/
|
||||
if (subtype == IEEE80211_FC0_SUBTYPE_QOS)
|
||||
if (subtype == IEEE80211_FC0_SUBTYPE_QOS_DATA)
|
||||
qos = ieee80211_getqos(wh)[0];
|
||||
else
|
||||
qos = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user