Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jan 2017 04:23:06 +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: r311661 - head/sys/net80211
Message-ID:  <201701080423.v084N6Sc073712@repo.freebsd.org>

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



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