From: Vignesh Raman <vignesh.raman@collabora.com>
To: iwd@lists.linux.dev
Cc: bgalvani@redhat.com, ludovico.denittis@collabora.com
Subject: [PATCH] network: report WPA3-SAE networks as sae in Network.Type
Date: Tue, 6 Oct 2026 18:47:38 +0530 [thread overview]
Message-ID: <20261006131740.1965490-1-vignesh.raman@collabora.com> (raw)
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(-)
diff --git a/src/network.c b/src/network.c
index a5a2375a..12165176 100644
--- a/src/network.c
+++ b/src/network.c
@@ -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;
}
--
2.47.3
reply other threads:[~2026-10-06 13:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261006131740.1965490-1-vignesh.raman@collabora.com \
--to=vignesh.raman@collabora.com \
--cc=bgalvani@redhat.com \
--cc=iwd@lists.linux.dev \
--cc=ludovico.denittis@collabora.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox