CYW43455/brcmfmac: device disassociates every ~60s when an associated AP's Country IE is applied on a UNII-3 channel
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- c, linux
調査の方向性
Start by tracing the brcmfmac handling of Country IEs and the regulatory change path that passes the country to the firmware; the report identifies the REGULATORY_COUNTRY_IE_IGNORE workaround but names no source files or tests. Reproduce with a CYW43455 on a UNII-3 channel and an AP advertising a Country IE, then compare with channel 48 and with Country IEs disabled. Done means identifying why the repeated local disassociation occurs and confirming a fix prevents it.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
When the device is associated on a UNII-3 channel (149/153/157/161/165) to an access point that advertises an IEEE 802.11d Country Information Element (Country IE), the device disassociates on its own approximately every 60-65 seconds and immediately reconnects, repeating indefinitely for as long as it remains associated and the AP continues to advertise the Country IE. The same AP/configuration on channel 48 (UNII-2A) does not exhibit this behavior.
Steps to reproduce the behaviour
- Configure an access point on any UNII-3 channel (149/153/157/161/165) with
ieee80211d=1and acountry_code. The specific value does not appear to matter (tested withBR,PLandDE); the device's own regulatory domain wasUSthroughout testing. - Associate the Raspberry Pi 5 device to it.
- Observe the connection for 2-3 minutes.
Device (s)
Raspberry Pi 5
System
- Board: Raspberry Pi 5
- WiFi chip: CYW43455 (
BCM4345/6) - OS: Raspberry Pi OS, Debian 12 (bookworm)
- Kernel:
6.12.109+rpt-rpi-2712(Debian package1:6.12.109-1+rpt1, built 2026-09-11), aarch64 - Firmware:
Firmware: BCM4345/6 wl0: Aug 29 2023 01:47:08 version 7.45.265 (28bca26 CY) FWID 01-b677b91b - Access point: any AP broadcasting a Country IE on a UNII-3 channel should trigger this. In the test lab, a Linux host running hostapd was used, configured with
hw_mode=a,channel=149,ieee80211d=1,country_code=BR, WPA3-SAE
Logs
Captured via journalctl -u wpa_supplicant on stock Raspberry Pi OS, associating to the AP described above and observing three consecutive cycles. Nothing in this sequence is user- or host-triggered; it is shown unfiltered:
23:18:09 wlan0: Associated with 44:0f:b4:22:e6:ee
23:18:09 wlan0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=BR
23:18:09 wlan0: WPA: Key negotiation completed with 44:0f:b4:22:e6:ee [PTK=CCMP GTK=CCMP]
23:18:09 wlan0: CTRL-EVENT-CONNECTED - Connection to 44:0f:b4:22:e6:ee completed
23:19:10 wlan0: CTRL-EVENT-DISCONNECTED bssid=44:0f:b4:22:e6:ee reason=3 locally_generated=1
23:19:11 wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
23:19:11 wlan0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=US
23:19:13 wlan0: Trying to associate with 44:0f:b4:22:e6:ee (SSID='AATEL' freq=5745 MHz)
23:19:13 wlan0: Associated with 44:0f:b4:22:e6:ee
23:19:13 wlan0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=BR
23:19:13 wlan0: WPA: Key negotiation completed with 44:0f:b4:22:e6:ee [PTK=CCMP GTK=CCMP]
23:19:13 wlan0: CTRL-EVENT-CONNECTED - Connection to 44:0f:b4:22:e6:ee completed
23:20:14 wlan0: CTRL-EVENT-DISCONNECTED bssid=44:0f:b4:22:e6:ee reason=3 locally_generated=1
23:20:14 wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
23:20:14 wlan0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=US
23:20:17 wlan0: Trying to associate with 44:0f:b4:22:e6:ee (SSID='AATEL' freq=5745 MHz)
23:20:17 wlan0: Associated with 44:0f:b4:22:e6:ee
23:20:17 wlan0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=BR
23:20:17 wlan0: WPA: Key negotiation completed with 44:0f:b4:22:e6:ee [PTK=CCMP GTK=CCMP]
23:20:17 wlan0: CTRL-EVENT-CONNECTED - Connection to 44:0f:b4:22:e6:ee completed
Each cycle is identical. The AP's Country IE is applied (init=COUNTRY_IE alpha2=BR) the moment association completes. 61 seconds later, with no preceding user action and nothing else in the log to account for it, the device disassociates (locally_generated=1 indicates the device itself sent the disassociation/deauth, not the AP) and reconnects, re-applying the same Country IE, repeating indefinitely.
Additional context
Expected behavior
The device remains associated and does not disconnect on its own.
Actual behavior
Within ~60-65 seconds of association, the device disassociates and immediately reconnects to the same AP. The cycle repeats for as long as the device stays associated and the AP keeps advertising the Country IE.
- Setting
ieee80211d=0on the AP (no Country IE at all) removes the failure entirely; a run of 15+ minutes shows no disconnects. Re-enablingieee80211d=1reproduces the same cycle again. - The failure reproduces identically on all five UNII-3 channels (149/153/157/161/165); it does not occur on channel 48 (UNII-2A) with the same AP/configuration, Country IE enabled.
- The specific country value carried in the IE does not affect the outcome - any country reproduces the same cycle, including a country the device is already configured for.
Our workaround
REGULATORY_COUNTRY_IE_IGNORE has been set on the brcmfmac wiphy in a downstream kernel tree, which causes cfg80211 to discard any AP-advertised Country IE before it reaches the driver's "country" iovar. This removes the failure entirely (tested 30+ minutes combined across all five UNII-3 channels plus a second, unrelated access point, with zero reproductions) without affecting the device's own regulatory-domain source or an explicit user-initiated country change (iw reg set continues to function as before). This is a host-side workaround, not a firmware fix: the firmware is expected to exhibit the same behavior if a country value reaches it by any other path (for example, a user explicitly setting the regulatory domain while associated on a UNII-3 channel).
Questions
- Is this a known issue with the CYW43455/
BCM4345/6firmware (version 7.45.265, 28bca26 CY) or its CLM table, or with Broadcom/Infineon-Cypress firmware for this chip family more broadly? - Is a newer firmware or CLM build available that does not exhibit this behavior, or is there a channel through which this can be raised with Broadcom/Infineon-Cypress?
- 主要言語
- C
- スター
- 13.4k
- フォーク
- 5.5k
- 平均マージ
- 2日 11時間
- マージ済み PR(30日)
- 32
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
raspberrypi/linux のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
raspberrypi/linux#7415 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
rp1-cfe doesn't forward V4L2_EVENT_SOURCE_CHANGE event from csi-2 sensor driver to userspace appオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
raspberrypi/linux#7399 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
raspberrypi/linux#7357 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
raspberrypi/linux#7054 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
raspberrypi/linux#7790 · コメント 18 件 ·
メンテナーはふだん 1 日以内に返信
raspberrypi/linux の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
area/build-framework kind/enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
yugabyte/yugabyte-db#39342 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
Document the isv:HDFGroup Linux package repositories and signing key対応中かも @brtnfld が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
kind:silent-wrong needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
InauguralSystems/EigenScript#2567 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信