opnsense-src/sys/compat
Bjoern A. Zeeb 4d66e0f884 LinuxKPI: 802.11: mark struct ieee80211_ht_cap __packed
In lkpi_sta_sync_ht_from_ni() we are casting the information element (IE)
data to this struct as net80211 does not save the mcs/rx_mask.
Not marking the structs packed results in the mcs information not being
copied correctly and rx_nss calculations possibly being off.  Even worse,
at a later stage iwlwifi mvm/rs.c would extract the mcs values from the
same field to pass to the firmware which will than crash in an assert
as we would want to do HT with an empty MCS set.

Sponsored by:	The FreeBSD Foundation
Discovered:	while testing other features on arm64.
Approved by:	re (cperciva)

(cherry picked from commit 6cbf8a04b1864d933506301cabe213a9c918d968)
(cherry picked from commit 9ccf7aeaa5dc5ceb3bf896d84ee50294b841043b)
2025-05-27 22:44:20 +00:00
..
freebsd32 stat(2): add st_bsdflags field 2025-04-09 03:53:17 +03:00
ia32 sysentvec: add SV_SIGSYS flag 2023-10-09 06:24:31 +03:00
lindebugfs lindebugfs: use __func__ not __FUNCTION__ 2025-02-10 14:52:12 +00:00
linprocfs linprocfs: Correct sysfs /proc/<pid>/mountinfo entry 2025-03-31 10:42:48 -07: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: Handle IP_RECVTOS cmsg type 2025-03-31 10:43:06 -07:00
linuxkpi LinuxKPI: 802.11: mark struct ieee80211_ht_cap __packed 2025-05-27 22:44:20 +00:00
x86bios sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00