svn commit: r311661 - head/sys/net80211
Adrian Chadd
adrian at FreeBSD.org
Sun Jan 8 04:23:07 UTC 2017
Author: adrian
Date: Sun Jan 8 04:23:05 2017
New Revision: 311661
URL: https://svnweb.freebsd.org/changeset/base/311661
Log:
[net80211] add a "is VHT available" macro.
We have run out of config bits, sigh, so until I expand the ic config
bits, just use this macro as a substitute.
Modified:
head/sys/net80211/ieee80211_var.h
Modified: head/sys/net80211/ieee80211_var.h
==============================================================================
--- head/sys/net80211/ieee80211_var.h Sun Jan 8 02:32:53 2017 (r311660)
+++ head/sys/net80211/ieee80211_var.h Sun Jan 8 04:23:05 2017 (r311661)
@@ -88,6 +88,14 @@
#define IEEE80211_TU_TO_TICKS(x)(((uint64_t)(x) * 1024 * hz) / (1000 * 1000))
/*
+ * Technically, vhtflags may be 0 /and/ 11ac is enabled.
+ * At some point ic should just grow a flag somewhere that
+ * says that VHT is supported - and then this macro can be
+ * changed.
+ */
+#define IEEE80211_CONF_VHT(ic) ((ic)->ic_vhtcaps != 0)
+
+/*
* 802.11 control state is split into a common portion that maps
* 1-1 to a physical device and one or more "Virtual AP's" (VAP)
* that are bound to an ieee80211com instance and share a single
More information about the svn-src-all
mailing list