HomeFreeBSD

LinuxKPI: 802.11: return proper value for IEEE80211_CRYPTO_AES_CCM

Description

LinuxKPI: 802.11: return proper value for IEEE80211_CRYPTO_AES_CCM

In case of LKPI_80211_HW_CRYPTO we convert from LinuxKPI cipher_suites
to net80211 ic_cryptocaps fields. For WLAN_CIPHER_SUITE_CCMP we
accidentally returned the bit number instead of the shifted value
which leads to ieee80211_crypto_newkey() setting IEEE80211_KEY_SWCRYPT,
which in turned lead to us trying to decode the frame again despite
HW had already done it. This was found out of a discussion in D43634.

Reviewed by: cc, adrian
Differential Revision: https://reviews.freebsd.org/D44208

(cherry picked from commit 906521f8176b13533556d742db4ab28e847b85c0)

Details

Provenance
bzAuthored on Mar 4 2024, 11:03 PM
Reviewer
cc
Differential Revision
D44208: LinuxKPI: 802.11: return proper value for IEEE80211_CRYPTO_AES_CCM
Parents
rG947dfe1e01f3: LinuxKPI: pm: add SET_SYSTEM_SLEEP_PM_OPS() and device_can_wakeup()
Branches
Unknown
Tags
Unknown