Skip to content

wifi: brcmfmac: query assoc_info with a full-sized buffer - #587

Merged
RyanTheTide merged 1 commit into
aurora-wipfrom
claude/bootlog-brcmfmac-assoc-info
Oct 30, 2026
Merged

RyanTheTide merged 1 commit into
aurora-wipfrom
claude/bootlog-brcmfmac-assoc-info

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Every Wi-Fi association on the M1 Pro, the M2 and the M4 Pro (J616s) logs an err-level line, and it is one of the few journalctl -b -p 3 kernel lines left on those machines:

ieee80211 phy0: brcmf_get_assoc_ies: could not get assoc info (-52)

Since cda3744 ("wifi: brcmfmac bound association IEs to returned payloads") the assoc_info iovar is queried with an 8-byte buffer, the size of the two lengths the driver reads. The firmware fails a get whose buffer is shorter than its association record, so the query fails, cfg80211 gets no association request or response IEs, and the WMM AC priorities are never read.

Evidence: in the saved Broadcom-machine dmesg under aurora-ctl/reports, none of the 16 boots saved on 10-10 and 10-11 has the line, and 18 of the 22 saved from 10-23 on have it once (the other four were not checked for an association).

This queries with WL_ASSOC_INFO_MAX bytes as the driver did before, into the buffer the IE queries already use, and keeps the bounds checks on the returned length.

Testing

  • W=1 compile of the touched objects with the universal config (Fedora Asahi base + asahi.config), no new warnings; full Image, modules and dtbs build of all four bootlog PRs together is queued on the buildbox. checkpatch clean apart from the required Co-Authored-By trailer.
  • Not yet run on hardware. To test on any Broadcom machine: install the kernel, associate, and check journalctl -b -k -p 3 has no could not get assoc info line and iw dev wlan0 link shows the connection as before.

🤖 Generated with Claude Code

Since commit cda3744 ("wifi: brcmfmac bound association IEs to
returned payloads") the "assoc_info" iovar is queried with an 8-byte
buffer, the size of the two lengths the driver reads. The firmware fails
a get whose buffer is shorter than its whole association record, so
every association on the BCM4387 and BCM4388 now logs

  brcmf_get_assoc_ies: could not get assoc info (-52)

and cfg80211 gets no association request or response IEs, and the WMM
AC priorities are never read. Saved boot logs show the message on every
association after that change and on none before it.

Query with WL_ASSOC_INFO_MAX bytes as before, into the buffer the IE
queries already use, and keep the bounds checks on what the firmware
returns.

Fixes: cda3744 ("wifi: brcmfmac bound association IEs to returned payloads")
Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Full universal-config build (Fedora Asahi base + asahi.config, LLVM, W=1) of aurora-wip b7edb5b plus #587, #588, #589 and #590 together: Image, modules and dtbs build OK, no warnings or errors in the touched files. Not yet run on hardware.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Boot-tested in fleet10 (7.3.0-aurora-fleet10): integration/aurora 1173b79 plus 587, 588, 589, 590, 596, 599, 600, 601, 603, 604, 605, 607 and 608, built with the shipping recipe (Fedora Asahi base + asahi.config, 0 mismatches, all distro gates). apple-dcp host selftests 80/80, and the other host tests match integration/aurora exactly (62 pass, the same 26 pre-existing failures). One-shot boots on the Neo (J700), the M2 and the M1 Pro, compared with each machine's fleet9 boot; fleet10 is now the default on all three. Full dmesg and journals are in aurora-ctl reports/fleet10-20261030.

Result for this PR: pass.

  • M2: fleet9 logged could not get assoc info (-52) once per boot; fleet10 has none. Wi-Fi associated, 0% loss to the gateway.
  • M1 Pro: the same, line gone on the one-shot and the default boot, Wi-Fi up.
  • Neo uses MT7932, not affected.
  • J616s not tested yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant