From: James Prestwood <prestwoj@gmail.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: Harry ten Berge <htenberge@gmail.com>, iwd@lists.linux.dev
Subject: Re: Raspberry Pi 5 and WPA3
Date: Tue, 30 Apr 2024 04:17:17 -0700 [thread overview]
Message-ID: <25618c14-df5a-4980-9e62-dd5c96084455@gmail.com> (raw)
In-Reply-To: <38861D9C-F5F5-4149-99CD-0C59480986ED@holtmann.org>
Hi Marcel,
On 4/30/24 12:42 AM, Marcel Holtmann wrote:
> Hi James,
>
>>> I'm not sure this is the right place to ask for some assistance, but
>>> here we go...
>>>
>>> I'm the author for a small Raspberry Pi audio image that is
>>> specifically targeting Roon.
>>> If you're not familiair with Roon: it's an audio streaming platform
>>> targeting audiophiles ;-)
>>>
>>> Anyways, about a year ago I switched from wpa_supplicant to iwd, to
>>> full satisfaction.
>>> Better and easier integration, and overall a feel of me being in more control.
>>>
>>> Now, recently I'm having issues with WPA3 support. This is partly
>>> related to firmware (it's just so obfuscated how this all works with
>>> firmware from broadcom and firmware from cypress :-(
>>>
>>> And one of those things is that I can't get it to work on the new Pi
>>> 5. Specifically IWD reporting this:
>>>
>>> Apr 29 17:41:41 ropieee5 iwd[275]: src/wiphy.c:wiphy_select_akm()
>>> Network is WPA3-Personal...
>>> Apr 29 17:41:41 ropieee5 iwd[275]: SAE unsupported: brcmfmac needs
>>> CMD_EXTERNAL_AUTH for SAE
>>> Apr 29 17:41:41 ropieee5 iwd[275]: src/wiphy.c:wiphy_select_akm()
>>> Can't use SAE, trying WPA2
>>>
>>> Now, the Pi guys point me to the missing CMD_EXTERNAL_AUTH message and
>>> advise me to go back to wpa_supplicant. Which is not something I would
>>> like to do for various reasons...
>>>
>>> Do you have any advice for me on what I can do? is this
>>> CMD_EXTERNAL_AUTH really related to this and are you planning on
>>> implementing this?
>> Unfortunately the external auth support is not yet implemented in IWD. The brcmfmac driver itself is rather unique being a fullmac driver. Depending on how you look at it, this on its own is "easier" to support. It handles connecting/roaming all on its own. But then, for some reason, someone didn't want to do SAE/WPA3 on the card itself so they came up with some one-off mechanism to offload that onto userspace. This is one of those things that got put upstream that is a pain for projects like IWD to support IMO. Its something we do need to support eventually, especially given the raspi 5 requires it.
> if the Broadcom firmware finally would be able to support external_auth,
> then it would be nice, but as seen on recent linux-wireless discussions,
> it is unclear who does what. Broadcom wanted to support external_auth,
> but then Infineon (the new owner) might be rather using SAE as part of
> the firmware. And actually the chip on the RPi5 marks itself as Cypress
> and so you it is an unclear story. I think that Raspberry Pi foundation
> should get their story straight. Until really recently they shipped a
> firmware that couldn’t do SAE and also their drivers couldn’t even do
> external_auth and you were stuck with WPA2 only.
>
> https://holtmann.dev/enabling-wpa3-on-raspberry-pi/
I was not aware that it didn't even support it correctly. I figured
broadcom was who added it in the first place.
>
> You can use an upstream firmware from linux-firmware and make the RPi5
> support WPA3. And as of a few weeks ago, even RPi5 latest Debian was
> switching to the upstream firmware.
>
> On side note, there exists no wpa_supplicant release that really supports
> SAE offload properly. You need to back port a lot of patches or hope
> that your distro back ported them for you.
>
> We should actually check if nl80211 tells us that external_auth is
> supported by the driver. And if not (which is the case for the Broadcom
> upstream driver) send a proper message to users and not lead them into
> a wild goose chase.
>
> Regards
>
> Marcel
>
next prev parent reply other threads:[~2024-04-30 11:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-29 20:25 Raspberry Pi 5 and WPA3 Harry ten Berge
2024-04-29 21:29 ` James Prestwood
2024-04-30 6:49 ` Harry ten Berge
2024-04-30 7:42 ` Marcel Holtmann
2024-04-30 11:17 ` James Prestwood [this message]
2024-04-30 12:19 ` KeithG
2024-04-30 15:42 ` Harry ten Berge
2024-05-02 12:56 ` KeithG
2024-05-02 13:09 ` James Prestwood
2024-05-02 13:47 ` KeithG
2024-05-02 14:07 ` James Prestwood
2024-05-07 2:33 ` KeithG
2024-05-07 11:55 ` James Prestwood
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=25618c14-df5a-4980-9e62-dd5c96084455@gmail.com \
--to=prestwoj@gmail.com \
--cc=htenberge@gmail.com \
--cc=iwd@lists.linux.dev \
--cc=marcel@holtmann.org \
/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