eiwd

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

commit be7b19d587f008784572dd02b42afafbd279310c
parent 16f5bbc20a4b9c5453418693257751ffbf243748
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Sat,  3 Aug 2024 22:18:36 -0500

fils: Ensure capability checks are consistent

iwd supports FILS only on softmac drivers.  Ensure the capability check
is consistent between wiphy and netdev, both the softmac and the
relevant EXT_FEATURE bit must be checked.

CMD_EXTERNAL_AUTH could potentially be used for FILS for FullMAC cards,
but no hardware supporting this has been identified yet.

Diffstat:
Msrc/netdev.c | 3++-
Msrc/wiphy.c | 1+
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/netdev.c b/src/netdev.c @@ -3776,7 +3776,8 @@ static int netdev_handshake_state_setup_connection_type( case IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA256: case IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA384: /* FILS has no offload in any upstream driver */ - if (softmac) + if (softmac && wiphy_has_ext_feature(wiphy, + NL80211_EXT_FEATURE_FILS_STA)) goto softmac; return -ENOTSUP; diff --git a/src/wiphy.c b/src/wiphy.c @@ -277,6 +277,7 @@ enum ie_rsn_akm_suite wiphy_select_akm(struct wiphy *wiphy, */ if (security == SECURITY_8021X) { if (wiphy_has_ext_feature(wiphy, NL80211_EXT_FEATURE_FILS_STA) && + wiphy->support_cmds_auth_assoc && fils_capable_hint) { if ((info->akm_suites & IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA384) &&