opnsense-src/sys/compat
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
..
freebsd32 Regen 2024-11-29 12:10:45 +00:00
ia32 freebsd32: struct siginfo32 -> struct __siginfo32 2024-03-19 23:13:26 +00:00
lindebugfs LinuxKPI/lindebugfs: stop panicing in lindebugfs, fix simple_read_from_buffer 2024-07-26 10:53:55 +00:00
linprocfs linprocfs: Add support for proc/sys/fs/mqueue/* 2024-05-23 13:40:45 -06:00
linsysfs linsysfs(5): Remove sys/cdefs.h inclusion where it's not needed due to 685dc743 2023-08-18 13:12:02 +03:00
linux linux(4): Fix typo xatrr in function name 2024-11-29 14:38:35 -07:00
linuxkpi net80211 / LinuxKPI 802.11: use enum ieee80211_sta_rx_bw for ni_chw 2024-12-08 20:57:53 +00:00
x86bios Deprecate contigfree(9) in favour of free(9) 2024-07-26 10:45:01 +00:00