LinuxKPI: 802.11: return proper value for IEEE80211_CRYPTO_AES_CCM
authorBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 4 Mar 2024 23:03:58 +0000 (23:03 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Tue, 12 Mar 2024 22:59:11 +0000 (22:59 +0000)
commit906521f8176b13533556d742db4ab28e847b85c0
tree8fea6c5138c3e9a30e187de3789efd369e7dff25
parentf254aad33dfb5ce18b6b97b7d036b420310e9ed5
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.

MFC after: 3 days
Reviewed by: cc, adrian
Differential Revision: https://reviews.freebsd.org/D44208
sys/compat/linuxkpi/common/src/linux_80211.c