[net80211] Add a macro to see if a frame is a management frame or not.
This commit is contained in:
parent
eaa5e39660
commit
561da369d7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=307818
@ -162,6 +162,10 @@ struct ieee80211_qosframe_addr4 {
|
||||
#define IEEE80211_FC0_SUBTYPE_QOS_CFACKPOLL 0xb0
|
||||
#define IEEE80211_FC0_SUBTYPE_QOS_NULL 0xc0
|
||||
|
||||
#define IEEE80211_IS_MGMT(wh) \
|
||||
(!! (((wh)->i_fc[0] & IEEE80211_FC0_TYPE_MASK) \
|
||||
== IEEE80211_FC0_TYPE_MGT))
|
||||
|
||||
#define IEEE80211_FC0_QOSDATA \
|
||||
(IEEE80211_FC0_TYPE_DATA|IEEE80211_FC0_SUBTYPE_QOS|IEEE80211_FC0_VERSION_0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user