freebsd-skq/sys/net80211
Bjoern A. Zeeb 2b9f12f6b2 net80211: enhance getflags*() and ieee80211_add_channel*()
For ieee80211_add_channel+*() we are passing in an int flag for
ht40 and in some cases another int flag for vht80 where we'd only
need two bits really.
Convert these variables to a bitflag and fold them together into one.
This also allows for VHT160 and VHT80P80 and whatever may come to
be considered. Define the various options currently needed.

Change the drivers (rtwn and rsu) which actually set this bit to non-0.
For convenience the "1" currently used for HT40 is preserved.

Enahnce getflags_5ghz() to handle the full set of VHT flags based
on the input flags from the the driver.

Update the regdomain implementation as well to make use of the new
flags and deal with higher [V]HT bandwidths.

ieee80211_add_channel() specifically did not take flags so it will
not support naything beyond 20Mhz channels.

Note: I am not entirely happy with the "cbw_flag[s]" name, but we
do use chan_flags elsewhere already.

MFC after:	2 weeks
Reviewed by:	adrian, gnn
Sponsored by:	Rubicon Communications, LLC (d/b/a "Netgate")
Differential revision:	https://reviews.freebsd.org/D26091
2020-08-24 13:15:08 +00:00
..
_ieee80211.h 80211: consistently order 160 and 80+80 2020-08-17 13:04:18 +00:00
ieee80211_acl.c
ieee80211_action.c
ieee80211_action.h
ieee80211_adhoc.c [net80211] Send a probe request after IBSS node discovery 2020-06-05 00:11:44 +00:00
ieee80211_adhoc.h
ieee80211_ageq.c
ieee80211_ageq.h
ieee80211_alq.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (7 of many) 2020-02-21 16:32:17 +00:00
ieee80211_alq.h
ieee80211_amrr.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (7 of many) 2020-02-21 16:32:17 +00:00
ieee80211_amrr.h
ieee80211_crypto_ccmp.c
ieee80211_crypto_none.c
ieee80211_crypto_tkip.c
ieee80211_crypto_wep.c
ieee80211_crypto.c
ieee80211_crypto.h
ieee80211_ddb.c [net80211] Migrate HT/legacy protection mode and preamble calculation to per-VAP flags 2020-07-01 00:23:49 +00:00
ieee80211_dfs.c
ieee80211_dfs.h
ieee80211_freebsd.c [net80211] Add new privileges; restrict what can be done in a jail. 2020-07-19 15:16:27 +00:00
ieee80211_freebsd.h Fix !DEBUGNET build after r362138 2020-06-13 03:16:09 +00:00
ieee80211_hostap.c [net80211] Migrate HT/legacy protection mode and preamble calculation to per-VAP flags 2020-07-01 00:23:49 +00:00
ieee80211_hostap.h
ieee80211_ht.c 80211: consistently spell 80P80 2020-08-17 12:52:57 +00:00
ieee80211_ht.h [net80211] Commit files missing in the previous commit 2020-07-01 00:24:55 +00:00
ieee80211_hwmp.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (7 of many) 2020-02-21 16:32:17 +00:00
ieee80211_input.c
ieee80211_input.h [net80211] Treat frames without an rx status as not a decap'ed A-MSDU. 2020-06-14 00:23:06 +00:00
ieee80211_ioctl.c net80211: remove vertical whitespace 2020-08-17 16:28:59 +00:00
ieee80211_ioctl.h net80211/ifconfig: print hardware device name for wlan interfaces 2020-08-07 12:24:23 +00:00
ieee80211_mesh.c Don't indirect user pointers directly in two 802.11s ioctls. 2020-04-24 22:10:02 +00:00
ieee80211_mesh.h
ieee80211_monitor.c
ieee80211_monitor.h
ieee80211_node.c [net80211] Migrate HT/legacy protection mode and preamble calculation to per-VAP flags 2020-07-01 00:23:49 +00:00
ieee80211_node.h [net80211] Migrate HT/legacy protection mode and preamble calculation to per-VAP flags 2020-07-01 00:23:49 +00:00
ieee80211_output.c [net80211] Migrate HT/legacy protection mode and preamble calculation to per-VAP flags 2020-07-01 00:23:49 +00:00
ieee80211_phy.c
ieee80211_phy.h [net80211] Migrate short slot time configuration into per-vap and deferred taskqueue updates. 2020-06-05 06:21:23 +00:00
ieee80211_power.c [net80211] Migrate HT/legacy protection mode and preamble calculation to per-VAP flags 2020-07-01 00:23:49 +00:00
ieee80211_power.h
ieee80211_proto.c [net80211] Migrate HT/legacy protection mode and preamble calculation to per-VAP flags 2020-07-01 00:23:49 +00:00
ieee80211_proto.h net80211: replace magic number by define 2020-08-17 20:18:01 +00:00
ieee80211_radiotap.c
ieee80211_radiotap.h
ieee80211_ratectl_none.c
ieee80211_ratectl.c
ieee80211_ratectl.h
ieee80211_regdomain.c net80211: enhance getflags*() and ieee80211_add_channel*() 2020-08-24 13:15:08 +00:00
ieee80211_regdomain.h
ieee80211_rssadapt.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (7 of many) 2020-02-21 16:32:17 +00:00
ieee80211_rssadapt.h
ieee80211_scan_sta.c [net80211] Add some more debugging during scanning 2020-06-05 00:16:54 +00:00
ieee80211_scan_sw.c [net80211] Add some more debugging during scanning 2020-06-05 00:16:54 +00:00
ieee80211_scan_sw.h
ieee80211_scan.c net80211(4): do not setup roaming parameters for unsupported modes. 2019-02-03 01:32:02 +00:00
ieee80211_scan.h
ieee80211_sta.c [net80211] Migrate HT/legacy protection mode and preamble calculation to per-VAP flags 2020-07-01 00:23:49 +00:00
ieee80211_sta.h [net80211] Add initial U-APSD negotiation support. 2020-06-16 00:27:32 +00:00
ieee80211_superg.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (7 of many) 2020-02-21 16:32:17 +00:00
ieee80211_superg.h
ieee80211_tdma.c net80211(4): do not setup Tx parameters for unsupported modes. 2019-02-03 04:31:50 +00:00
ieee80211_tdma.h
ieee80211_var.h net80211: enhance getflags*() and ieee80211_add_channel*() 2020-08-24 13:15:08 +00:00
ieee80211_vht.c net80211: VHT correct NSS Set loop boundary 2020-08-17 20:16:33 +00:00
ieee80211_vht.h [net80211] Commit files missing in the previous commit 2020-07-01 00:24:55 +00:00
ieee80211_wds.c Restructure mbuf send tags to provide stronger guarantees. 2019-05-24 22:30:40 +00:00
ieee80211_wds.h
ieee80211_wps.h
ieee80211_xauth.c
ieee80211.c net80211: enhance getflags*() and ieee80211_add_channel*() 2020-08-24 13:15:08 +00:00
ieee80211.h [net80211] Add field definition for A-MSDU inside A-MPDU. 2020-06-05 04:04:47 +00:00