opnsense-src/sys/compat/linuxkpi/common/include
Bjoern A. Zeeb ca389486a9 net80211 / LinuxKPI 802.11: use enum ieee80211_sta_rx_bw for ni_chw
net80211 node ni_chw currently encodes the channel width as Mhz number.
LinuxKPI 802.11 uses enum ieee80211_sta_rx_bw for the same.

Rather than keeping the "20" and "40" throughout the code (eventually
expanded to 80/160/320) switch them over to use the enum throughout
and add a print mask for debug output.  While designed as bitmask it
is not supposed to be used as such;  the bitmask is only used to be
able to use %b with a print mask.

Once we get to 320Mhz channel widths we would otherwise also need to
extend the uint8_t in struct ieee80211_node; making
enum ieee80211_sta_rx_bw __packed allows us for three more channel
widths without breaking the KBI (if we were not to use %b with a
print_mask but use a lookup function for the string we could extend
it for a long time).

Sponsored by:	The FreeBSD Foundation
MFC after:	14 days
Reviewed by:	adrian
Differential Revision: https://reviews.freebsd.org/D47891
2024-12-08 20:57:53 +00:00
..
acpi LinuxKPI: Add acpi_dev_get_first_match_dev and acpi_device_handle 2024-07-21 16:09:37 +03:00
asm LinuxKPI: Add smp_store_release and smp_load_acquire functions 2024-06-26 23:44:37 +03:00
asm-generic linuxkpi: Add io.h 2022-08-08 15:22:35 +02:00
crypto LinuxKPI: add dummy hash.h and kernel_connect() 2023-05-12 11:21:10 +00:00
linux net80211 / LinuxKPI 802.11: use enum ieee80211_sta_rx_bw for ni_chw 2024-12-08 20:57:53 +00:00
net LinuxKPI: 802.11: adjustments for v6.11 iwlwifi, rtw88 and rtw89 2024-10-28 12:16:06 +00:00
video LinuxKPI: update linuxkpi_video to Linux 6.6 2024-08-07 23:38:38 +03:00
xen LinuxKPI: Add xen/xen.h header 2023-12-24 11:19:58 +03:00
stdarg.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00