]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Indicate SUITE_B_192 capa only when CCMP-256/GCMP-256 supported
authorMikael Kanstrup <mikael.kanstrup@sony.com>
Tue, 1 Oct 2019 14:19:29 +0000 (16:19 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 27 Oct 2019 13:22:19 +0000 (15:22 +0200)
commit937644aa2c677d930560e368c7c91c8bd194f0bd
treeede1ec0ace4f87488cd0df85dd62042a79cdd5e6
parent46746fc170783c674de2bd2afbfc4eee7ebbf5dc
nl80211: Indicate SUITE_B_192 capa only when CCMP-256/GCMP-256 supported

SUITE_B_192 AKM capability was indicated for all devices using the
nl80211 driver (without the QCA vendor specific AKM capability
indication). However, some devices can't handle Suite B 192 due to
insufficient ciphers supported. Add a check for CCMP-256 or GCMP-256
cipher support and only indicate SUITE_B_192 capability when such cipher
is supported. This allows compiling with CONFIG_SUITEB192 and still get
proper response to the 'GET_CAPABILITY key_mgmt' command. Under Android
it can also serve as a dynamic way for HAL to query platform for
WPA3-Enterprise 192-bit support.

Signed-off-by: Mikael Kanstrup <mikael.kanstrup@sony.com>
src/drivers/driver_nl80211_capa.c