network: report WPA3-SAE networks as sae in Network.Type
PATCH 1/1 network: report WPA3-SAE networks as sae in Network.Type
iwd reports both WPA2-PSK and WPA3-SAE networks as psk in Network.Type. NetworkManager relies on this property to pick key-mgmt, so it saves WPA3-SAE networks with key-mgmt=wpa-psk instead of key-mgmt=sae.
Report sae for WPA3-SAE networks to fix this issue.
--- src/network.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
src/network.c +6 -2
@@ -1842,9 +1842,13 @@ static bool network_property_get_type(struct l_dbus *dbus, {struct network *network = user_data;enum security security =network_get_security (network); +const char *type =security_to_str (security); +struct scan_bss *bss =l_queue_peek_head (network->bss_list); -l_dbus_message_builder_append_basic (builder,'s' , -security_to_str (security)); +if (bss &&bss_is_sae (bss)) + type ="sae" ; + +l_dbus_message_builder_append_basic (builder,'s' , type);return true; }
Signature · 1 line
2.47.3