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 thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- c, linux, raspberry-pi
- Lĩnh vực
- networking, operating-systems
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C
- Star
- 13.4k
- Fork
- 5.5k
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 37
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của raspberrypi/linux
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
raspberrypi/linux#7822 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
raspberrypi/linux#7415 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
rp1-cfe doesn't forward V4L2_EVENT_SOURCE_CHANGE event from csi-2 sensor driver to userspace appĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
raspberrypi/linux#7399 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Documentation update requiredĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
raspberrypi/linux#7357 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
raspberrypi/linux#7054 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của raspberrypi/linux
Issue tương tự
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
389ds/389-ds-base#8251 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug data-types
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
ClickHouse/clickhouse-cpp#645 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ROCm/hrx-system#3628 ·
Maintainer thường phản hồi trong vòng 1 ngày