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

Aperta
#7,823 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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

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
  1. Pi 5 on WiFi (NetworkManager, WPA2-PSK), AP: TP-Link Archer AX55 Pro (Qualcomm IPQ5018), WPA2 only, no PMF.
  2. Reboot, or reload the driver in a loop (modprobe -r brcmfmac_cyw brcmfmac; modprobe brcmfmac) and wait for the connection.
  3. Watch journalctl -u wpa_supplicant for ASSOC-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:47
  • network-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.

rasp5-wifi-captures-logs.zip

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di raspberrypi/linux

Tutte le issue di raspberrypi/linux

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.