opnsense-src/sys/compat/linuxkpi/common/include
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
..
acpi LinuxKPI: Add acpi_dev_get_first_match_dev and acpi_device_handle 2024-08-02 00:15:51 +03:00
asm LinuxKPI: Add smp_store_release and smp_load_acquire functions 2024-08-02 00:09:41 +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 LinuxKPI: 802.11: mark struct ieee80211_ht_cap __packed 2025-05-27 22:44:20 +00:00
net LinuxKPI: 802.11: header updates for mt76 2025-05-08 21:22:53 +00:00
video LinuxKPI: update linuxkpi_video to Linux 6.6 2024-08-11 13:12:38 +03:00
xen LinuxKPI: Add xen/xen.h header 2024-02-17 23:58:37 +03:00
stdarg.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00