Repository navigation
mt7932: name the forbidden-channel marker; make Bluetooth depend on the Wi-Fi driver - #207
Merged
Merged
Conversation
A country package marks a channel the country does not permit by setting every per-rate limit of the channel to 0xc4. The constant for that byte is called MT7932_POLICY_NO_LIMIT, which reads as "unrestricted", the opposite of its meaning. Rename it to MT7932_POLICY_NOT_PERMITTED. No functional change. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
asahi.config asks for the J700 Bluetooth transport, but not for the Wi-Fi driver whose bound function the transport waits for before it starts. Ask for both, as j700-radio.config already does. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
The Bluetooth transport defers its probe until the Wi-Fi function is bound to mt7932-fullmac. Without that driver it can never bind, yet it can still be selected with MT7932_FULLMAC=n and then sits in the deferred probe list for good. Make the option depend on the Wi-Fi driver being enabled. Use "!= n" rather than a plain dependency so that the transport can still be built in while the Wi-Fi driver is a module; the deferred probe handles that order. Fixes: 920e89a ("Bluetooth: mt7932: wait for the Wi-Fi function before starting") Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
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.
Two small follow-ups to #204 from its post-merge review, in three commits.
Commits
0xc4.MT7932_POLICY_NO_LIMIT, which reads as "unrestricted", the opposite of its meaning.MT7932_POLICY_NOT_PERMITTED. No functional change.asahi.configasks for the J700 Bluetooth transport, but not for the Wi-Fi driver whose bound function the transport waits for.j700-radio.configalready does.mt7932-fullmac. WithMT7932_FULLMAC=nit can never bind and stays deferred for good, yet the option could still be selected.depends on MT7932_FULLMAC != n.!= nrather than a plain dependency keeps the built-in transport with a modular Wi-Fi driver possible. The deferred probe handles that order, as the J700: bring up Wi-Fi and Bluetooth without boot options or an admission script #204 review confirmed.Fixes: 920e89a2e3df ("Bluetooth: mt7932: wait for the Wi-Fi function before starting")Testing
Hardware-tested on the MacBook Neo (J700), kernel
7.1.12-aurora-j700-fu1+(all seven follow-ups merged ontoaurora-wip35c7d87), compared item for item with the default kernel built from that base: the J700 configuration resolves exactly as before, Bluetooth starts after Wi-Fi, hci0 powers on and a scan finds devices. On the M2 MacBook Air (J413) and M1 Pro MacBook Pro (J316s), kernel7.1.12-aurora-fu1-mac+(same composition), compared with the previous kernel: configuration resolves identically, no change in behaviour.Kconfig resolution, starting from the J700 configuration:
j700-radio.configresolves to the same.configbefore and after.Other checks:
j700-radio.config;defconfig+asahi.configwith every Apple Silicon driver as a module (16K pages, Rust).aurora-wip(35c7d87921c0).!KEXEC_CORE, so only the J700 build compiles it.Assisted-by: LLMtrailer-format warning.aurora-wipand with the other follow-up branches.Provenance
Written for this PR from the public driver source and the review findings.
🤖 Generated with Claude Code