HomeFreeBSD

LinuxKPI: 802.11: mark struct ieee80211_ht_cap __packed

Description

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.

(cherry picked from commit 6cbf8a04b1864d933506301cabe213a9c918d968)

Details

Provenance
bzAuthored on May 26 2025, 11:20 PM
Parents
rG9a4e5a8a714c: pciconf(8): Dump the correct number of bytes
Branches
Unknown
Tags
Unknown