eiwd

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

commit 4948bfac208a3be43c8bc987bbdeae763fd924fc
parent a1699b158794aaf1ab16f602d6dc0c602e73879f
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Tue, 16 Jul 2019 12:00:45 -0500

station: Add support for ProtocolVersion

ProtocolVersion in the EAPoL group can be used to force a particular
EAPoL version if the RADIUS server on a given network requires it

Diffstat:
Msrc/station.c | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/station.c b/src/station.c @@ -828,9 +828,11 @@ static struct handshake_state *station_handshake_setup(struct station *station, struct scan_bss *bss) { enum security security = network_get_security(network); + struct l_settings *settings = network_get_settings(network); struct wiphy *wiphy = station->wiphy; struct handshake_state *hs; const char *ssid; + uint32_t eapol_proto_version; hs = netdev_handshake_state_new(station->netdev); @@ -842,6 +844,21 @@ static struct handshake_state *station_handshake_setup(struct station *station, ssid = network_get_ssid(network); handshake_state_set_ssid(hs, (void *) ssid, strlen(ssid)); + if (settings && l_settings_get_uint(settings, "EAPoL", + "ProtocolVersion", + &eapol_proto_version)) { + if (eapol_proto_version > 3) { + l_warn("Invalid ProtolVersion value - should be 0-3"); + eapol_proto_version = 0; + } + + if (eapol_proto_version) + l_debug("Overriding EAPoL protocol version to: %u", + eapol_proto_version); + + handshake_state_set_protocol_version(hs, eapol_proto_version); + } + if (security == SECURITY_PSK) { /* SAE will generate/set the PMK */ if (IE_AKM_IS_SAE(hs->akm_suite)) {