Skip to content

wifi: brcmfmac: Enable WPA3 on Z2W - #7762

Merged
pelwell merged 4 commits into
raspberrypi:rpi-6.18.yfrom
pelwell:wpa3
Nov 19, 2026
Merged

pelwell merged 4 commits into
raspberrypi:rpi-6.18.yfrom
pelwell:wpa3

Conversation

@pelwell

@pelwell pelwell commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Inspired by a patch from Synaptics, this set of patches enables WPA3 support on both flavours of Zero 2 W. It will also work with Pi 400, but only once a new 43456 firmware has been released.

@pelwell

pelwell commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

There are two firmware updates to go with this PR.

For the Zero 2 W with 43436P there is a trial firmware:
https://drive.google.com/file/d/1Xw2TNcvUTFtl_sLT4novEjFLPybrv9sc/view?usp=drive_link
To install:

$ sudo cp rtecdc_rsp_p3.bin /lib/firmware/brcm/
$ cd /lib/firmware/brcm/
$ sudo ln -sf rtecdc_rsp_p3.bin brcmfmac43430b0-sdio.raspberrypi,model-zero-2-w.bin
# and to revert
$ sudo ln -sf brcmfmac43436-sdio.bin brcmfmac43430b0-sdio.raspberrypi,model-zero-2-w.bin

Then reboot and try again.

Pi 400 has a new release candidate firmware: https://drive.google.com/file/d/1c6JX--IXy5RzhfFEB5nKQpxe1Z3A9six/view?usp=drive_link
Installation is similar to the Zero 2 W:

$ sudo cp rtecdc_43456_extsae.bin /lib/firmware/brcm
$ cd /lib/firmware/brcm
$ sudo ln -sf rtecdc_43456_extsae.bin brcmfmac43456-sdio.raspberrypi,400.bin

and revert with:

$ sudo ln -sf brcmfmac43456-sdio.bin brcmfmac43456-sdio.raspberrypi,400.bin

You can install this trial kernel build by running sudo rpi-update pulls/7762, but read the caveats first.

N.B. This is intended to be run with wpasupplicant 2:2.10-24+rpt3, but install the trial kernel before updating wpasupplicant if you aren't running +rpt3 already.

@pelwell

pelwell commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

I've added a fourth commit that, with the right firmwares, gets H2E working on all devices:

Chip (board) Firmware Status sae_pwe=0 (H&P only) sae_pwe=1 (H2E only) sae_pwe=2 (both)
CYW43455 (Pi 5, Pi 4 etc.) 7.45.286 (be70ab3 CY) shipping Y Y Y (picks H2E)
43456 (Pi 400) 7.45.96 (g8eb0a068) next release Y Y Y (picks H2E)
SYN43436P (Zero 2 W) 9.88.4.116p3 (g1f35fc5) trial Y Y Y (picks H2E)
SYN43436s (Zero 2 W) 7.45.96.s1 (gf031a129) shipping Y Y Y (picks H2E)

I hope to get a release candidate for the 43436P firmware soon, and get them both shipped.

Some firmware (e.g. Synaptics builds for SYN43456 and SYN43436s)
advertises "extsae" but has neither in-firmware SAE nor the Infineon
mgmt_frame/auth_status iovars. Instead it signals the start of
authentication with a JOIN_START event, delivers received
authentication frames in E_AUTH events, and accepts authentication
frames and resume commands through the assoc_mgr_cmd iovar.

Add support for this scheme so that the host supplicant can perform
SAE:

- On JOIN_START, raise an external authentication request to
  userspace and pause the firmware association state machine at the
  authentication response.
- Forward SAE authentication frames from E_AUTH events to userspace.
- Transmit authentication frames from userspace with the
  assoc_mgr_cmd SEND_AUTH command.
- When userspace reports the result, resume the association, or
  disconnect on failure.

Also map WPA2 + SAE AKM to WPA3_AUTH_SAE_PSK whenever SAE_EXT is
supported, not only for Infineon firmware.

Based on a patch supplied by Synaptics.

Assisted-by: Claude
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
The SDIO device IDs of some Infineon chips are shared with Synaptics
parts - e.g. the SYN43436s in the Raspberry Pi Zero 2 W is a
BCM43430/1, like the CYW43438 - so the Synaptics firmware is run with
the CYW vendor ops. That firmware advertises "extsae", but the CYW
external SAE implementation relies on the mgmt_frame and auth_status
iovars, which it lacks. The SAE commit frame is never sent and the
connection times out.

Instead of unconditionally installing the CYW mgmt_tx and
external_auth ops, do it from feat_attach, and only if the firmware
supports both iovars; otherwise the generic external SAE support is
used. Both iovars are set-only, so a get returns BCME_UNSUPPORTED
whether or not they exist - probe with a zero-length set instead,
which Infineon firmware rejects with a length/allocation error.

Move the BRCMF_FW_UNSUPPORTED definition to fwil.h so that vendor
modules can use it.

Link: raspberrypi#7528
Assisted-by: Claude
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Synaptics firmware for the SYN43436s and SYN43436P supports the
in-firmware supplicant (FWSUP), so after an external SAE
authentication the driver selects PSK offload, the supplicant skips
the 4-way handshake, and the firmware doesn't perform it either. The
AP then deauthenticates the station.

Until now this has been avoided by disabling FWSUP with the
feature_disable module parameter. Instead, clear the FWSUP feature
when the generic (non-Infineon) external SAE support is in use, so
that WPA3 works regardless of any module parameters.

Assisted-by: Claude
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
With external SAE the firmware builds the (re)association request
itself, adding its own RSNXE. That RSNXE advertises SAE H2E support even
when the supplicant has authenticated using hunting-and-pecking (e.g.
wpa_supplicant with the default sae_pwe=0), and an AP that supports both
mechanisms rejects the association as a downgrade attack.

The firmware uses an RSNXE passed after the RSN IE in the "wpaie" iovar,
so for SAE connections pass the RSNXE from the supplicant's IEs, or an
empty one if the supplicant didn't supply one.

Tested on a Pi 5 (CYW43455, 7.45.286) against a mixed H&P/H2E AP:
sae_pwe=0 now connects instead of being rejected with status 1, and
sae_pwe=2 still connects using H2E.

Assisted-by: Claude
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
@pelwell

pelwell commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

One more update, reclassifying and tweaking some logging output to be less chatty.

@pelwell
pelwell merged commit e8e7982 into raspberrypi:rpi-6.18.y Nov 19, 2026
11 of 12 checks passed
@pelwell

pelwell commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

There is a release candidate firmware for the 43436P (BCM43430/2) variant of the Z2W available to download from here:
https://drive.google.com/file/d/1_DPVvWzr5bZMvU6pOA7Hp3twrfaUvziL/view?usp=drive_link

Install as above, but with a different filename:

$ sudo cp 43436P_raspberry_release-9.88.4.121.bin /lib/firmware/brcm/
$ cd /lib/firmware/brcm/
$ sudo ln -sf 43436P_raspberry_release-9.88.4.121.bin brcmfmac43430b0-sdio.raspberrypi,model-zero-2-w.bin

Reversion is the same as before:

$ sudo ln -sf brcmfmac43436-sdio.bin brcmfmac43430b0-sdio.raspberrypi,model-zero-2-w.bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant