Skip to content

WPA3 broken on Pi 3 with 6.6 (and works with 6.1) #6130

Open

Description

@spockfish

Describe the bug

When I run a 6.1 kernel on a Pi 3, using IWD, WPA3 works as expected. However, simply switching to the 6.6 kernel breaks this: the interface does not come up.

Steps to reproduce the behaviour

Run a 6.6 kernel, on a Pi 3, accessing a WPA 3 network.

Device (s)

Raspberry Pi 3 Mod. B

System

custom built OS (buildroot), with latest 6.1 or 6.6 kernel, IWD for wireless interface mgt.

Logs

No response

Additional context

There's another strange thing going on: I'm using the 'rpi-firmware-nonfree' release (https://github.com/RPi-Distro/firmware-nonfree), but the latest release does not support SAE offload, which is required for WPA3 to function.

So, the latest firmware reports (iw phy) the following:

Supported extended features:
		* [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
		* [ 4WAY_HANDSHAKE_STA_PSK ]: 4-way handshake with PSK in station mode
		* [ 4WAY_HANDSHAKE_STA_1X ]: 4-way handshake with 802.1X in station mode

And thus WPA3 not functioning, where switching back to the upstream firmware (https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/) reports this:

Supported extended features:
		* [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
		* [ 4WAY_HANDSHAKE_STA_PSK ]: 4-way handshake with PSK in station mode
		* [ 4WAY_HANDSHAKE_STA_1X ]: 4-way handshake with 802.1X in station mode
		* [ SAE_OFFLOAD ]: SAE offload support

And thus results in a working WPA3 connection, if using 6.1.

Activity

  1. peterharperuk commented on Apr 29, 2024

    @peterharperuk

    My understanding is you have to use the upstream firmware if you want WPA3 support. Is it just that buildroot is using the wrong version?

  2. spockfish commented on Apr 29, 2024

    @spockfish
    Author

    you have to use the upstream firmware if you want WPA3 support

    That's what I said above ;-) Still does not fix the issue that this only works for 6.1, and not for 6.6.

  3. pelwell commented on Apr 29, 2024

    @pelwell
    Contributor

    The upstream firmware uses the SAE feature, so there is no need to use iwd (in fact it doesn't work) - continue to use wpa_supplicant as before.

  4. spockfish commented on Apr 29, 2024

    @spockfish
    Author

    so there is no need to use iwd (in fact it doesn't work) - continue to use wpa_supplicant as before.

    Well, it's not about 'need'. I just happen to 'like' IWD, in favour of wpa_supplicant. I've been using it on various Pi's for more than a year now.

    Could you elaborate a bit on the "it doesn't work" part?

  5. spockfish commented on Apr 29, 2024

    @spockfish
    Author

    Hmmm.... I think I know why. IWD does not support CMD_EXTERNAL_AUTH

  6. pelwell commented on Apr 29, 2024

    @pelwell
    Contributor

    Yes - that's it.

  7. spockfish commented on Apr 29, 2024

    @spockfish
    Author

    The upstream firmware uses the SAE feature, so there is no need to use iwd (in fact it doesn't work) - continue to use wpa_supplicant as before.

    It's still not clear to me why this should be a difference between 6.1 and 6.6.
    Again, with 6.1 I got this working, with 6.6 not.

  8. spockfish commented on Apr 30, 2024

    @spockfish
    Author

    To add to this: the same goes for the Pi 4.

    With 6.1 WPA3 is working (upstream firmware), but replacing that with the latest 6.6 (and nothing else) breaks it.

  9. MashiroYae commented on Jun 18, 2024

    @MashiroYae

    Linux 6.9.4-1-rpi-16k #1 SMP PREEMPT Wed Jun 12 15:15:09 EDT 2024 aarch64 GNU/Linux
    6.9 still not work

  10. EdiDD commented on Nov 2, 2024

    @EdiDD

    @spockfish how did you switch to upstream firmware?. Recompile from scratch or copy pre-compiled binaries to /boot partition ?

  11. spockfish commented on Nov 2, 2024

    @spockfish
    Author

    I meant the firmware as packaged in 'linux-firmware' (https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/)

  12. EdiDD commented on Nov 4, 2024

    @EdiDD

    I meant the firmware as packaged in 'linux-firmware' (https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/)

    Did you manually extract this archive to /lib/firmware ?

  13. spockfish commented on Nov 5, 2024

    @spockfish
    Author

    Did you manually extract this archive to /lib/firmware ?

    I build a custom Linux, and there's a little bit more to it then just copying it over. Most distro's provide this fairly up-to-date.

  14. gearhead commented on Dec 29, 2024

    @gearhead
    Contributor

    I recently worked with the brcmfmac and the iwd devs and have WPA3 negotiation working with the latest firmware from infineon plus a one line patch to the brcm80211 kernel driver.
    The firmware is here:
    https://community.infineon.com/t5/AIROC-Wi-Fi-and-Wi-Fi-Bluetooth/Cypress-Linux-WiFi-Driver-Release-FMAC-2024-11-21/td-p/902888
    The specific firmware I tested is attached. There are other firmwares in the package from infineon. The only one I am able to check is the fmac43455 that is used on the RPi3b+,4B,5B. Upon boot, it identifies as:
    Firmware: BCM4345/6 wl0: Oct 28 2024 23:27:00 version 7.45.286 (be70ab3 CY) FWID 01-95efe7fa

    There is still no up to date firmware with the external_auth fixes for the wifi chip on the Zero series and the 3b. The one on the latest Bookworm images appears to be the latest from Infineon:
    Firmware: BCM43430/1 wl0: Jun 14 2023 07:27:45 version 7.45.96.s1 (gf031a129) FWID 01-70bd2af7 es7

    The patch for the kernel driver is a one line patch to the brcm80211 driver developed by Arend Van Spriel and is found in this chain:
    https://lore.kernel.org/linux-wireless/CAG17S_OwtNxetb7XzsxkZcygH_CWkZx15evQZkThb3WjqpiKTQ@mail.gmail.com/
    It was originally a patch for the upstream kernel. I adjusted it to the 6.6.y kernel tree and attach it here.

    I have tried this firmware/kernel patch with wpa_supplicant (that is currently in the Bookwork image/update) on the RPi and it will connect to a WPA3 AP every time and collect a DHCP address and pass traffic.

    The current git of iwd works with this kernel patch/firmware most of the time, but sometimes will not grab a DHCP address. A re-try to connect usually will grab a DHCP address. I am certain that this minor bug in iwd will be fixed shortly by the iwd team. The version that has the fix for this firmware/driver that I have tested is: iwd 3.3.r0.g4b535cee.

    Please add this to the latest Pi installation and kernel to facilitate WPA3 capability for the 43455 chip.

    brcm80211_wpa3.zip
    cyfmac43455.zip

    Gearhead

  15. pelwell commented on Dec 29, 2024

    @pelwell
    Contributor

    [I've fixed your URLs]

    Does the patch depend on the updated firmware in order to work? If so, what feature or fix is included that makes the difference?

  16. 105 remaining items

  17. bolleyboll commented on Dec 22, 2025

    @bolleyboll

    Folks, is there a working solution to this problem at the moment for RPi3? Or is there a plan to fix this at the moment?

  18. sciguy14 commented on Mar 16, 2026

    @sciguy14

    Any word on this? It looks like it was made to work on 6.6, but its broken for me on a 6.12 kernel, despite the logic mentioned in @gearhead 's patch being present. (43455 chip with .286 firmware and user-space SAE)

  19. gearhead commented on Mar 26, 2026

    @gearhead
    Contributor

    idk what is up with this on the 43455 and the 43430 chip, but feel it is probably on Cypress on the 43430 and they are not interested in keeping it up to date. It is eol, regardless of how many are in circulation. There has not been an update of the 43430 (RPi 3B and Zero2w) driver from Cypress in a long time.
    It also seems that RPi does not always get the 'latest' firmware from Cypress in the image. It has been a while since I have checked to see how SAE is working on the 43455 with current kernels (6.12). I guess I should try it. I am pretty sure the 43430 is not working on kernels 6.6+ as there has not been an updated firmware for it when the 43455 was updated. THe last time I checked the 43455 worked with wpa_supplicant and the patch for iwd, but have not checked in a while. I just checked my pi4 and get this:

    [    4.296826] brcmfmac: F1 signature read @0x18000000=0x15264345
    [    4.301196] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
    [    4.316505] usbcore: registered new interface driver brcmfmac
    [    4.558355] Bluetooth: hci0: BCM4345C0 'brcm/BCM4345C0.raspberrypi,4-model-b.hcd' Patch
    [    4.591228] brcmfmac: brcmf_c_process_txcap_blob: no txcap_blob available (err=-2)
    [    4.591827] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Aug 29 2023 01:47:08 version 7.45.265 (28bca26 CY) FWID 01-b677b91b
    

    so it looks like the RPi team are still at 265 on the 43455 whereas the current is 7.45.286 from Cypress (last I checked).

  20. ValdikSS commented on Sep 7, 2026

    @ValdikSS
    Contributor

    Can anyone please test SAE support on the latest Raspberry OS (kernel 6.18) with 43455 (3B/4/5)?

    I have Raspberry Pi 400, it has 43456 and seems to have never supported SAE.
    #7610

    Just want to check how iw phy / wpa_cli get_capability key_mgmt output should look for 43455.

  21. pelwell commented on Sep 10, 2026

    @pelwell
    Contributor

    On a Pi 5:

    $ iw phy
    Wiphy phy0
            wiphy index: 0
            max # scan SSIDs: 10
            max scan IEs length: 2048 bytes
            max # sched scan SSIDs: 16
            max # match sets: 16
            Retry short limit: 7
            Retry long limit: 4
            Coverage class: 0 (up to 0m)
            Supported Ciphers:
                    * WEP40 (00-0f-ac:1)
                    * WEP104 (00-0f-ac:5)
                    * TKIP (00-0f-ac:2)
                    * CCMP-128 (00-0f-ac:4)
                    * CMAC (00-0f-ac:6)
            Available Antennas: TX 0 RX 0
            Supported interface modes:
                     * IBSS
                     * managed
                     * AP
                     * P2P-client
                     * P2P-GO
                     * P2P-device
            Band 1:
                    Capabilities: 0x1020
                            HT20
                            Static SM Power Save
                            RX HT20 SGI
                            No RX STBC
                            Max AMSDU length: 3839 bytes
                            DSSS/CCK HT40
                    Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                    Minimum RX AMPDU time spacing: 16 usec (0x07)
                    HT TX/RX MCS rate indexes supported: 0-7
                    Bitrates (non-HT):
                            * 1.0 Mbps
                            * 2.0 Mbps (short preamble supported)
                            * 5.5 Mbps (short preamble supported)
                            * 11.0 Mbps (short preamble supported)
                            * 6.0 Mbps
                            * 9.0 Mbps
                            * 12.0 Mbps
                            * 18.0 Mbps
                            * 24.0 Mbps
                            * 36.0 Mbps
                            * 48.0 Mbps
                            * 54.0 Mbps
                    Frequencies:
                            * 2412.0 MHz [1] (20.0 dBm)
                            * 2417.0 MHz [2] (20.0 dBm)
                            * 2422.0 MHz [3] (20.0 dBm)
                            * 2427.0 MHz [4] (20.0 dBm)
                            * 2432.0 MHz [5] (20.0 dBm)
                            * 2437.0 MHz [6] (20.0 dBm)
                            * 2442.0 MHz [7] (20.0 dBm)
                            * 2447.0 MHz [8] (20.0 dBm)
                            * 2452.0 MHz [9] (20.0 dBm)
                            * 2457.0 MHz [10] (20.0 dBm)
                            * 2462.0 MHz [11] (20.0 dBm)
                            * 2467.0 MHz [12] (20.0 dBm)
                            * 2472.0 MHz [13] (20.0 dBm)
                            * 2484.0 MHz [14] (disabled)
            Band 2:
                    Capabilities: 0x1062
                            HT20/HT40
                            Static SM Power Save
                            RX HT20 SGI
                            RX HT40 SGI
                            No RX STBC
                            Max AMSDU length: 3839 bytes
                            DSSS/CCK HT40
                    Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                    Minimum RX AMPDU time spacing: 16 usec (0x07)
                    HT TX/RX MCS rate indexes supported: 0-7
                    VHT Capabilities (0x00001020):
                            Max MPDU length: 3895
                            Supported Channel Width: neither 160 nor 80+80
                            short GI (80 MHz)
                            SU Beamformee
                    VHT RX MCS set:
                            1 streams: MCS 0-9
                            2 streams: not supported
                            3 streams: not supported
                            4 streams: not supported
                            5 streams: not supported
                            6 streams: not supported
                            7 streams: not supported
                            8 streams: not supported
                    VHT RX highest supported: 0 Mbps
                    VHT TX MCS set:
                            1 streams: MCS 0-9
                            2 streams: not supported
                            3 streams: not supported
                            4 streams: not supported
                            5 streams: not supported
                            6 streams: not supported
                            7 streams: not supported
                            8 streams: not supported
                    VHT TX highest supported: 0 Mbps
                    VHT extended NSS: not supported
                    Bitrates (non-HT):
                            * 6.0 Mbps
                            * 9.0 Mbps
                            * 12.0 Mbps
                            * 18.0 Mbps
                            * 24.0 Mbps
                            * 36.0 Mbps
                            * 48.0 Mbps
                            * 54.0 Mbps
                    Frequencies:
                            * 5170.0 MHz [34] (disabled)
                            * 5180.0 MHz [36] (20.0 dBm)
                            * 5190.0 MHz [38] (disabled)
                            * 5200.0 MHz [40] (20.0 dBm)
                            * 5210.0 MHz [42] (disabled)
                            * 5220.0 MHz [44] (20.0 dBm)
                            * 5230.0 MHz [46] (disabled)
                            * 5240.0 MHz [48] (20.0 dBm)
                            * 5260.0 MHz [52] (20.0 dBm) (no IR, radar detection)
                            * 5280.0 MHz [56] (20.0 dBm) (no IR, radar detection)
                            * 5300.0 MHz [60] (20.0 dBm) (no IR, radar detection)
                            * 5320.0 MHz [64] (20.0 dBm) (no IR, radar detection)
                            * 5500.0 MHz [100] (20.0 dBm) (no IR, radar detection)
                            * 5520.0 MHz [104] (20.0 dBm) (no IR, radar detection)
                            * 5540.0 MHz [108] (20.0 dBm) (no IR, radar detection)
                            * 5560.0 MHz [112] (20.0 dBm) (no IR, radar detection)
                            * 5580.0 MHz [116] (20.0 dBm) (no IR, radar detection)
                            * 5600.0 MHz [120] (20.0 dBm) (no IR, radar detection)
                            * 5620.0 MHz [124] (20.0 dBm) (no IR, radar detection)
                            * 5640.0 MHz [128] (20.0 dBm) (no IR, radar detection)
                            * 5660.0 MHz [132] (20.0 dBm) (no IR, radar detection)
                            * 5680.0 MHz [136] (20.0 dBm) (no IR, radar detection)
                            * 5700.0 MHz [140] (20.0 dBm) (no IR, radar detection)
                            * 5720.0 MHz [144] (disabled)
                            * 5745.0 MHz [149] (disabled)
                            * 5765.0 MHz [153] (disabled)
                            * 5785.0 MHz [157] (disabled)
                            * 5805.0 MHz [161] (disabled)
                            * 5825.0 MHz [165] (disabled)
            Supported commands:
                     * new_interface
                     * set_interface
                     * new_key
                     * start_ap
                     * set_bss
                     * join_ibss
                     * set_pmksa
                     * del_pmksa
                     * flush_pmksa
                     * remain_on_channel
                     * frame
                     * set_wiphy_netns
                     * set_channel
                     * start_sched_scan
                     * start_p2p_device
                     * connect
                     * disconnect
                     * crit_protocol_start
                     * crit_protocol_stop
            software interface modes (can always be added):
            valid interface combinations:
                     * #{ managed } <= 2, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
                       total <= 3, #channels <= 2
                     * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
                       total <= 4, #channels <= 1
            Device supports SAE with AUTHENTICATE command
            Device supports scan flush.
            Device supports randomizing MAC-addr in sched scans.
            max # scan plans: 1
            max scan plan interval: 508
            max scan plan iterations: 0
            Supported TX frame types:
                     * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                     * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                     * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                     * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                     * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
            Supported RX frame types:
                     * managed: 0x40 0xb0 0xd0
                     * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                     * P2P-client: 0x40 0xd0
                     * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                     * P2P-device: 0x40 0xd0
            Supported extended features:
                    * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                    * [ DFS_OFFLOAD ]: DFS offload
    $ wpa_cli get_capability key_mgmt
    Selected interface 'wlan0'
    NONE IEEE8021X WPA-EAP WPA-PSK WPA-EAP-SUITE-B OWE DPP FT-PSK FT-EAP
    
  22. ValdikSS commented on Sep 10, 2026

    @ValdikSS
    Contributor

    @pelwell no mention of SAE anywhere?

    There's one caveat with key_mgmt:
    wpa_supplicant creates key_mgmt from the chip's cipher list if the chip does not return key_mgmt. It's filled from the presets and miss for example WPA-EAP-SHA256 needed for WPA3-Enterprise. Most probably it will work even if it's not listed.

    To detect whether key_mgmt you see is from chip or filled from the template, run

    wpa_supplicant ... -d | grep 'supported key_mgmt'

    If you don't see this string in the output, this means the key_mgmt is filled from the template.

    Could you also provide wpa_cli get_capability auth_algs please?

    UPD: Device supports SAE with AUTHENTICATE command, I see.

  23. pelwell commented on Sep 10, 2026

    @pelwell
    Contributor

    @pelwell no mention of SAE anywhere?

    Does Device supports SAE with AUTHENTICATE command not count?

    Could you also provide wpa_cli get_capability auth_algs please?

    $ sudo wpa_cli get_capability auth_algs
    Selected interface 'wlan0'
    FAIL
    
  24. ValdikSS commented on Sep 10, 2026

    @ValdikSS
    Contributor

    It's auth_alg, sorry.

  25. pelwell commented on Sep 10, 2026

    @pelwell
    Contributor

    (Whoomp!) There it is:

    $ sudo wpa_cli get_capability auth_alg
    Selected interface 'wlan0'
    OPEN SHARED LEAP SAE
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions