Skip to content

mt7932: name the forbidden-channel marker; make Bluetooth depend on the Wi-Fi driver - #207

Merged
RyanTheTide merged 3 commits into
aurora-wipfrom
fix/mt7932-naming-and-bt-kconfig
Oct 8, 2026
Merged

RyanTheTide merged 3 commits into
aurora-wipfrom
fix/mt7932-naming-and-bt-kconfig

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Two small follow-ups to #204 from its post-merge review, in three commits.

Commits

  1. wifi: mt7932: name the forbidden-channel marker after what it means.
    • A country package marks a channel the country does not permit by setting every per-rate limit to 0xc4.
    • The constant was called MT7932_POLICY_NO_LIMIT, which reads as "unrestricted", the opposite of its meaning.
    • It is renamed to MT7932_POLICY_NOT_PERMITTED. No functional change.
  2. arm64: configs: asahi: enable the J700 Wi-Fi driver.
    • asahi.config asks for the J700 Bluetooth transport, but not for the Wi-Fi driver whose bound function the transport waits for.
    • It now asks for both, as j700-radio.config already does.
  3. Bluetooth: mt7932: depend on the Wi-Fi driver.

Testing

Hardware-tested on the MacBook Neo (J700), kernel 7.1.12-aurora-j700-fu1+ (all seven follow-ups merged onto aurora-wip 35c7d87), 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), kernel 7.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:

Requested Wi-Fi / BT Before After
y / y y / y y / y
y / m y / m y / m
m / y m / y m / y
m / m m / m m / m
n / y n / y n / n
n / m n / m n / n
  • No Kconfig warnings in any combination.
  • The J700 configuration with j700-radio.config resolves to the same .config before and after.

Other checks:

  • Builds, W=1 on the touched directories, then a full Image + modules + dtbs, on two configurations:
    • the J700 configuration with j700-radio.config;
    • arm64 defconfig + asahi.config with every Apple Silicon driver as a module (16K pages, Rust).
  • Warnings: every commit builds with no new warnings compared with aurora-wip (35c7d87921c0).
  • Bluetooth coverage: the transport depends on !KEXEC_CORE, so only the J700 build compiles it.
  • checkpatch --strict: clean, apart from the project's Assisted-by: LLM trailer-format warning.
  • Merge check: merges cleanly with aurora-wip and with the other follow-up branches.

Provenance

Written for this PR from the public driver source and the review findings.

🤖 Generated with Claude Code

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]>
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