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
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- c, linux, raspberry-pi
- Bereich
- networking, operating-systems
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C
- Sterne
- 13.4k
- Forks
- 5.5k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 37
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus raspberrypi/linux
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
raspberrypi/linux#7822 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
raspberrypi/linux#7415 · 2 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
rp1-cfe doesn't forward V4L2_EVENT_SOURCE_CHANGE event from csi-2 sensor driver to userspace appOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
raspberrypi/linux#7399 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
raspberrypi/linux#7357 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
raspberrypi/linux#7054 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in raspberrypi/linux
Ähnliche Issues
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
needs triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
389ds/389-ds-base#8251 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug data-types
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
ClickHouse/clickhouse-cpp#645 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
ROCm/hrx-system#3628 ·
Maintainer antworten meist innerhalb von 1 Tag