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

wiphy: Support GCMP|CCMP-256 cipher suites

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

View File

@ -150,6 +150,12 @@ enum ie_rsn_cipher_suite wiphy_select_cipher(struct wiphy *wiphy, uint16_t mask)
mask &= wiphy->supported_ciphers; mask &= wiphy->supported_ciphers;
if (mask & IE_RSN_CIPHER_SUITE_GCMP_256)
return IE_RSN_CIPHER_SUITE_GCMP_256;
if (mask & IE_RSN_CIPHER_SUITE_CCMP_256)
return IE_RSN_CIPHER_SUITE_CCMP_256;
if (mask & IE_RSN_CIPHER_SUITE_GCMP) if (mask & IE_RSN_CIPHER_SUITE_GCMP)
return IE_RSN_CIPHER_SUITE_GCMP; return IE_RSN_CIPHER_SUITE_GCMP;
@ -1239,6 +1245,14 @@ static void parse_supported_ciphers(struct wiphy *wiphy, const void *data,
case CRYPTO_CIPHER_GCMP: case CRYPTO_CIPHER_GCMP:
wiphy->supported_ciphers |= IE_RSN_CIPHER_SUITE_GCMP; wiphy->supported_ciphers |= IE_RSN_CIPHER_SUITE_GCMP;
break; break;
case CRYPTO_CIPHER_GCMP_256:
wiphy->supported_ciphers |=
IE_RSN_CIPHER_SUITE_GCMP_256;
break;
case CRYPTO_CIPHER_CCMP_256:
wiphy->supported_ciphers |=
IE_RSN_CIPHER_SUITE_CCMP_256;
break;
default: /* TODO: Support other ciphers */ default: /* TODO: Support other ciphers */
break; break;
} }