From: Denis Kenzior <denkenz@gmail.com>
To: Fiona Klute <fiona.klute@gmx.de>, iwd@lists.linux.dev
Subject: Re: [PATCH] Log falling back from SAE to WPA2
Date: Tue, 9 Jan 2024 21:33:21 -0600 [thread overview]
Message-ID: <214422a4-25bc-4676-8a4a-8bf8d67c7ab9@gmail.com> (raw)
In-Reply-To: <20240109095926.1541238-1-fiona.klute@gmx.de>
Hi Fiona,
On 1/9/24 03:59, Fiona Klute wrote:
> 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.
Interesting. Last time I checked only the quantenna driver used this feature
and it wasn't very common. If it isn't a secret, what card / driver do you have?
>
> Additionally the fallback may happen even if the user explicitly
> configured WPA3 in NetworkManager, I believe a warning is appropriate
> there.
There's currently no way to force WPA3-only in iwd. Either configure the AP to
be WPA3 only, or have the AP enforce transition-disable bit. But this typically
requires iwd to connect at least once with WPA3. See 'TransitionDisable' and
'DisabledTransitionModes' in man 5 iwd.network
> ---
> 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);
I flipped this around and made this statement an l_warn to make it clearer that
this is an iwd limitation.
> 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");
And made this into l_debug.
> goto wpa2_personal;
> + }
>
> if (info->akm_suites &
> IE_RSN_AKM_SUITE_FT_OVER_SAE_SHA256)
> --
Regards,
-Denis
next prev parent reply other threads:[~2024-01-10 3:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-09 9:59 [PATCH] Log falling back from SAE to WPA2 Fiona Klute
2024-01-10 3:33 ` Denis Kenzior [this message]
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
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=214422a4-25bc-4676-8a4a-8bf8d67c7ab9@gmail.com \
--to=denkenz@gmail.com \
--cc=fiona.klute@gmx.de \
--cc=iwd@lists.linux.dev \
/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