eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit a4678949f934a0b53617b760b295fe805e9bac2e
parent b5121e28acb835022e6e533edc91eaea9c63f2bb
Author: James Prestwood <prestwoj@gmail.com>
Date:   Wed,  2 Nov 2022 15:51:06 -0700

wiphy: add wiphy_get_supported_ciphers

Similar to wiphy_select_cipher but returns all supported ciphers
included in the mask rather than just one.

Diffstat:
Msrc/wiphy.c | 5+++++
Msrc/wiphy.h | 2++
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/wiphy.c b/src/wiphy.c @@ -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) { /* diff --git a/src/wiphy.h b/src/wiphy.h @@ -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,