3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

wiphy: add wiphy_get_supported_ciphers

Similar to wiphy_select_cipher but returns all supported ciphers
included in the mask rather than just one.
This commit is contained in:
James Prestwood 2022-11-02 15:51:06 -07:00 committed by Denis Kenzior
parent b5121e28ac
commit a4678949f9
2 changed files with 7 additions and 0 deletions

View File

@ -180,6 +180,11 @@ enum ie_rsn_cipher_suite wiphy_select_cipher(struct wiphy *wiphy, uint16_t mask)
return 0;
}
uint16_t wiphy_get_supported_ciphers(struct wiphy *wiphy, uint16_t mask)
{
return wiphy->supported_ciphers & mask;
}
static bool wiphy_can_connect_sae(struct wiphy *wiphy)
{
/*

View File

@ -68,6 +68,8 @@ typedef void (*wiphy_destroy_func_t)(void *user_data);
enum ie_rsn_cipher_suite wiphy_select_cipher(struct wiphy *wiphy,
uint16_t mask);
uint16_t wiphy_get_supported_ciphers(struct wiphy *wiphy, uint16_t mask);
enum ie_rsn_akm_suite wiphy_select_akm(struct wiphy *wiphy,
const struct scan_bss *bss,
enum security security,