HomeFreeBSD

LinuxKPI: 802.11: make (unsupported) cipher suite prints user friendly

Description

LinuxKPI: 802.11: make (unsupported) cipher suite prints user friendly

Rather than just printing the cipher suite as uint32_t hex
(or split into OUI and number) also print a short name.

iwlwifi(4), for example, now prints on startup with HW_CRYPTO on:
unsupported WLAN Cipher Suite 0x000fac | 8 (GCMP)
unsupported WLAN Cipher Suite 0x000fac | 9 (GCMP_256)
unsupported WLAN Cipher Suite 0x000fac | 6 (AES_CMAC)
unsupported WLAN Cipher Suite 0x000fac | 11 (BIP_GMAC_128)
unsupported WLAN Cipher Suite 0x000fac | 12 (BIP_GMAC_256)

Likewise _lkpi_iv_key_set() would now print:
iwlwifi0: _lkpi_iv_key_set: CIPHER SUITE 0xfac02 (TKIP) not supported

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 12a511c844706917e49e24c8d1daa861288aea23)

Details

Provenance
bzAuthored on Feb 19 2025, 12:04 PM
Parents
rG5d6b85d086bc: LinuxKPI: 802.11: hardware crypto offload improvements
Branches
Unknown
Tags
Unknown