wiphy: Support more group management cipher suites

This commit is contained in:
Denis Kenzior 2022-10-21 13:42:21 -05:00
parent d1acc80331
commit 7584b38562
1 changed files with 21 additions and 0 deletions

View File

@ -165,6 +165,15 @@ enum ie_rsn_cipher_suite wiphy_select_cipher(struct wiphy *wiphy, uint16_t mask)
if (mask & IE_RSN_CIPHER_SUITE_TKIP)
return IE_RSN_CIPHER_SUITE_TKIP;
if (mask & IE_RSN_CIPHER_SUITE_BIP_GMAC_256)
return IE_RSN_CIPHER_SUITE_BIP_GMAC_256;
if (mask & IE_RSN_CIPHER_SUITE_BIP_CMAC_256)
return IE_RSN_CIPHER_SUITE_BIP_CMAC_256;
if (mask & IE_RSN_CIPHER_SUITE_BIP_GMAC)
return IE_RSN_CIPHER_SUITE_BIP_GMAC;
if (mask & IE_RSN_CIPHER_SUITE_BIP_CMAC)
return IE_RSN_CIPHER_SUITE_BIP_CMAC;
@ -1253,6 +1262,18 @@ static void parse_supported_ciphers(struct wiphy *wiphy, const void *data,
wiphy->supported_ciphers |=
IE_RSN_CIPHER_SUITE_CCMP_256;
break;
case CRYPTO_CIPHER_BIP_GMAC:
wiphy->supported_ciphers |=
IE_RSN_CIPHER_SUITE_BIP_GMAC;
break;
case CRYPTO_CIPHER_BIP_GMAC_256:
wiphy->supported_ciphers |=
IE_RSN_CIPHER_SUITE_BIP_GMAC_256;
break;
case CRYPTO_CIPHER_BIP_CMAC_256:
wiphy->supported_ciphers |=
IE_RSN_CIPHER_SUITE_BIP_CMAC_256;
break;
default: /* TODO: Support other ciphers */
break;
}