[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.
This commit is contained in:
parent
6e37fb2b62
commit
cb4319e3b4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311661
@ -87,6 +87,14 @@
|
||||
/* XXX TODO: cap this at 1, in case hz is not 1000 */
|
||||
#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)
|
||||
|
Loading…
Reference in New Issue
Block a user