svn commit: r307818 - head/sys/net80211
Adrian Chadd
adrian at FreeBSD.org
Sun Oct 23 08:19:44 UTC 2016
Author: adrian
Date: Sun Oct 23 08:19:43 2016
New Revision: 307818
URL: https://svnweb.freebsd.org/changeset/base/307818
Log:
[net80211] Add a macro to see if a frame is a management frame or not.
Modified:
head/sys/net80211/ieee80211.h
Modified: head/sys/net80211/ieee80211.h
==============================================================================
--- head/sys/net80211/ieee80211.h Sun Oct 23 02:25:06 2016 (r307817)
+++ head/sys/net80211/ieee80211.h Sun Oct 23 08:19:43 2016 (r307818)
@@ -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)
More information about the svn-src-all
mailing list