[net80211] Add a macro to see if a frame is a management frame or not.
This commit is contained in:
parent
eaa5e39660
commit
561da369d7
@ -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