Pi 5 (CYW43455, 7.45.286): STA often does not ACK the AP's Authentication response → status_code=16, NetworkManager ends in permanent no-secrets after reboot
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- c, linux, raspberry-pi
- Ambito
- networking, operating-systems
Direzione di ricerca
Start with the attached brcmfmac debug logs, wpa_supplicant journal, and over-the-air captures, then reproduce with the stated modprobe reload loop. Investigate the brcmfmac_cyw authentication receive path and compare firmware 7.45.286 with 7.45.265. Done means the root cause is identified, a focused fix or upstream-ready change is produced, and the reboot/reload scenario no longer causes missed AP responses or the permanent NetworkManager no-secrets state.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
After a reboot, the Pi 5 regularly fails to join a WPA2-PSK network. wpa_supplicant reports CTRL-EVENT-ASSOC-REJECT bssid=00:00:00:00:00:00 status_code=16 (firmware WLC_E_AUTH status 2), several times in a row.
Usually a later attempt works, but if NetworkManager meanwhile sees a disconnect during the 4-way handshake (or three "association took too long"), it goes to failed (no-secrets) and blocks autoconnect for good on a headless system. One night this left the Pi offline until a power cycle.
An over-the-air capture (second device in monitor mode on the same channel) shows that the AP does answer and that the Pi's radio does not receive the answer:
21:29:21.998829 6.0 Mb/s 2c:cf:67:00:00:01 -> AP Authentication (Open System)-1
21:29:22.013439 6.0 Mb/s AP -> 2c:cf:67:00:00:01 Authentication (Open System)-2 (no ACK)
21:29:22.013603 6.0 Mb/s AP -> 2c:cf:67:00:00:01 Authentication (Open System)-2 retry, no ACK
21:29:22.013889 6.0 Mb/s AP -> 2c:cf:67:00:00:01 Authentication (Open System)-2 retry, no ACK
21:29:22.014212 6.0 Mb/s AP -> 2c:cf:67:00:00:01 Authentication (Open System)-2 retry, no ACK
(the Pi never retransmits its Authentication-1; ~770 ms later the firmware reports WLC_E_AUTH status 2)
21:29:25.365850 ... same again, 4 unacknowledged responses ...
21:29:29.152578 Pi Authentication-1 -> AP Authentication-2 -> Pi ACK -> Assoc Request -> connected
The AP answers within ~2 ms at the lowest rate with good signal (about -48 dBm at the sniffer) and retransmits 4 times. None of the copies are ACKed by the Pi, so the frames are not received at all. This matches the AP-side driver log: AUTH frame completion handler for every attempt.
Measured with the over-the-air capture:
| scenario | attempts where the Pi did not ACK the auth response |
|---|---|
plain systemctl reboot |
2 of 3 |
| driver reload loop, 5 GHz ch 48 | 9 of 9 in the run that ended in the NM block |
| driver reload loop, 2.4 GHz ch 10 | 27 of 35 |
Steps to reproduce the behaviour
- Pi 5 on WiFi (NetworkManager, WPA2-PSK), AP: TP-Link Archer AX55 Pro (Qualcomm IPQ5018), WPA2 only, no PMF.
- Reboot, or reload the driver in a loop (
modprobe -r brcmfmac_cyw brcmfmac; modprobe brcmfmac) and wait for the connection. - Watch
journalctl -u wpa_supplicantforASSOC-REJECT ... status_code=16, with a monitor-mode sniffer on the channel.
Device (s)
Raspberry Pi 5
System
- Raspberry Pi OS trixie (upgraded from bookworm on 2026-12-01), kernel
6.18.65+rpt-rpi-2712 - WiFi firmware
BCM4345/6 wl0: Oct 28 2024 23:27:00 version 7.45.286 (be70ab3 CY)(firmware-brcm80211 1:20260519-1~bpo13+1+rpt3) vcgencmd version: 2026/11/29 13:21:47network-manager 1.52.1-1+rpt4,wpasupplicant 2:2.10-24+rpt3,wifi.scan-rand-mac-address=no- AP: WPA2-PSK CCMP,
ieee80211w=0, 5 GHz ch 48 / 80 MHz and 2.4 GHz ch 10
Logs
Attached zip (SSIDs and MACs anonymized; data frames incl. EAPOL removed from the pcaps): three pcaps (reboot, 5 GHz reload loop, 2.4 GHz reload loop), the AP driver logs and the matching brcmfmac debug (debug=0x10D404), wpa_supplicant -dd and NetworkManager debug logs from the reboot.
Additional context
- Before the upgrade the persistent journal shows 31 boots with no
ASSOC-REJECT. Since then every boot shows some. - The driver reload loop also fails with the previous firmware (7.45.265), the 6.12.115 kernel (booted via tryboot) and bookworm's wpasupplicant, so that test may not isolate what changed. Reboot behaviour on the old stack was not captured over the air.
- Bluetooth switched off via rfkill makes no difference. Signal at the Pi is good (AP beacons -41 dBm in scans).
- Related but different: #7806 (rejoin after group-key rekey, 7.45.286 vs 7.45.265).
- Separately, the permanent NetworkManager block comes from
need_new_wpa_psk()asking an agent for a new PSK after one 4-way-handshake disconnect, which on a headless Pi cannot succeed. A transient radio problem becomes a permanent outage.
- Lingua principale
- C
- Stelle
- 13.4k
- Fork
- 5.5k
- Merge medio
- 1g 8h
- PR unite (30g)
- 37
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di raspberrypi/linux
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
raspberrypi/linux#7822 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
raspberrypi/linux#7415 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
rp1-cfe doesn't forward V4L2_EVENT_SOURCE_CHANGE event from csi-2 sensor driver to userspace appAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
raspberrypi/linux#7399 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
raspberrypi/linux#7357 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
raspberrypi/linux#7054 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di raspberrypi/linux
Issue simili
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
389ds/389-ds-base#8251 ·
I maintainer di solito rispondono entro 1 giorno
-
bug data-types
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
ClickHouse/clickhouse-cpp#645 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ROCm/hrx-system#3628 ·
I maintainer di solito rispondono entro 1 giorno