3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

station: Use IE_CIPHER_IS_GCMP_CCMP

This commit is contained in:
Denis Kenzior 2022-10-21 11:10:58 -05:00
parent e61cada28f
commit fb9bcdadec

View File

@ -1167,8 +1167,7 @@ build_ie:
* also indicates support. * also indicates support.
*/ */
if (wiphy_supports_ext_key_id(wiphy) && bss_info.extended_key_id && if (wiphy_supports_ext_key_id(wiphy) && bss_info.extended_key_id &&
(info.pairwise_ciphers & (IE_RSN_CIPHER_SUITE_CCMP | IE_CIPHER_IS_GCMP_CCMP(info.pairwise_ciphers))
IE_RSN_CIPHER_SUITE_GCMP)))
info.extended_key_id = true; info.extended_key_id = true;
/* RSN takes priority */ /* RSN takes priority */