public inbox for iwd@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] Log falling back from SAE to WPA2
@ 2024-01-09  9:59 Fiona Klute
  2024-01-10  3:33 ` Denis Kenzior
  0 siblings, 1 reply; 8+ messages in thread
From: Fiona Klute @ 2024-01-09  9:59 UTC (permalink / raw)
  To: iwd; +Cc: Fiona Klute

I've had connections to a WPA3-Personal only network fail with no log
message from iwd, and eventually figured out to was because the driver
would've required using CMD_EXTERNAL_AUTH. With the added log messages
the reason becomes obvious.

Additionally the fallback may happen even if the user explicitly
configured WPA3 in NetworkManager, I believe a warning is appropriate
there.
---
 src/wiphy.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/wiphy.c b/src/wiphy.c
index 766df348..5530e9c6 100644
--- a/src/wiphy.c
+++ b/src/wiphy.c
@@ -248,6 +248,8 @@ static bool wiphy_can_connect_sae(struct wiphy *wiphy)
 		 *
 		 * TODO: No support for CMD_EXTERNAL_AUTH yet.
 		 */
+		l_debug("Unsupported: %s needs CMD_EXTERNAL_AUTH for SAE",
+			wiphy->driver_str);
 		return false;
 	}

@@ -312,8 +314,10 @@ enum ie_rsn_akm_suite wiphy_select_akm(struct wiphy *wiphy,
 		if (ie_rsne_is_wpa3_personal(info)) {
 			l_debug("Network is WPA3-Personal...");

-			if (!wiphy_can_connect_sae(wiphy))
+			if (!wiphy_can_connect_sae(wiphy)) {
+				l_warn("Can't use SAE, trying WPA-2");
 				goto wpa2_personal;
+			}

 			if (info->akm_suites &
 					IE_RSN_AKM_SUITE_FT_OVER_SAE_SHA256)
--
2.43.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-01-10 17:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-09  9:59 [PATCH] Log falling back from SAE to WPA2 Fiona Klute
2024-01-10  3:33 ` Denis Kenzior
2024-01-10 11:33   ` Fiona Klute
2024-01-10 16:51     ` Denis Kenzior
2024-01-10 13:12   ` Marcel Holtmann
2024-01-10 16:47     ` Denis Kenzior
2024-01-10 17:05       ` Marcel Holtmann
2024-01-10 17:10         ` Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox