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.
Approved by: re (cperciva)

(cherry picked from commit 6cbf8a04b1864d933506301cabe213a9c918d968)
(cherry picked from commit 9ccf7aeaa5dc5ceb3bf896d84ee50294b841043b)

Details

Provenance
bzAuthored on May 26 2025, 11:20 PM
Parents
rGadc6f56e81aa: MAC/do: Fix a too stringent debug assertion for a target of 'uid=*'
Branches
Unknown
Tags
Unknown