Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Oct 2016 08:19:43 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r307818 - head/sys/net80211
Message-ID:  <201610230819.u9N8JhOa071885@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610230819.u9N8JhOa071885>