Repository navigation
wifi: brcmfmac: query assoc_info with a full-sized buffer - #587
Merged
Merged
Conversation
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]>
Contributor
Author
This was referenced Oct 30, 2026
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.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 3kernel lines left on those machines:Since cda3744 ("wifi: brcmfmac bound association IEs to returned payloads") the
assoc_infoiovar 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_MAXbytes as the driver did before, into the buffer the IE queries already use, and keeps the bounds checks on the returned length.Testing
journalctl -b -k -p 3has nocould not get assoc infoline andiw dev wlan0 linkshows the connection as before.🤖 Generated with Claude Code