mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +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:
parent
b5121e28ac
commit
a4678949f9
@ -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)
|
||||
{
|
||||
/*
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user