Skip to content

arm64: configs: asahi: enable Bluetooth RFCOMM, BNEP and LE - #2665

Merged
RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
kazuhidet:j715/bt-rfcomm-bnep-le
Nov 26, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
kazuhidet:j715/bt-rfcomm-bnep-le

Conversation

@kazuhidet

@kazuhidet kazuhidet commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

What: asahi.config leaves out Bluetooth RFCOMM, BNEP and LE, so headsets can't connect on kernels built from defconfig + asahi.config. Enable the six options.
Tested: J715 M4 Air with the lines of b8c76132, on integration/aurora 0abc2f385e and on the tip b10280c04c2d: RFCOMM and BNEP load, the headset connects, A2DP playback and the HFP microphone work, LE scan finds devices.
Risk: two-way · every Mac built from defconfig + asahi.config (Bluetooth modules only; vmlinux and Image unchanged)
Not yet: LE pairing, BNEP/PAN, other Macs.

On a J715 (MacBook Air 15-inch, M4), a Bluetooth headset cannot be used. Pixel Buds A-Series pair, but every connect fails or drops after about 2 s. bluetoothd logs:

src/profile.c:connect_io() Unable to connect Hands-Free Voice gateway: socket(STREAM, RFCOMM): Protocol not supported (93)
src/profile.c:record_cb() Connecting Hands-Free Voice gateway failed: Input/output error
No matching connection for device

The kernel has no RFCOMM. Merging defconfig + asahi.config on integration/aurora 0abc2f3 gives:

# CONFIG_BT_RFCOMM is not set
# CONFIG_BT_BNEP is not set
# CONFIG_BT_LE is not set
CONFIG_BT_HCIBCM4377=m

This applies to every Mac that is built from this fragment, not only to the J715.

Change

  • asahi.config: CONFIG_BT_RFCOMM=m, CONFIG_BT_RFCOMM_TTY=y, CONFIG_BT_BNEP=m, CONFIG_BT_BNEP_MC_FILTER=y, CONFIG_BT_BNEP_PROTO_FILTER=y, CONFIG_BT_LE=y. CONFIG_BT_LE_L2CAP_ECRED follows at its default (y).
  • I checked that all of them survive olddefconfig after merging over defconfig.
  • They are modules, or bool features inside bluetooth.ko (CONFIG_BT=m). The rebuild left vmlinux, Image and Module.symvers byte-identical. Only net/bluetooth, drivers/bluetooth and rsi_91x changed.
  • The fragment's header keeps distribution policy in the base config. These options are needed to use the Bluetooth controllers that this fragment enables (headsets and BLE devices), so they seem to belong here. If maintainers prefer them in the base config instead, I can move them.

Testing

On a J715 (apple,j715, apple,t8132; OS firmware 26.6.2, system firmware 27.2; Omarchy), 7.3.0-j715-aurora+ from integration/aurora 0abc2f3 plus local J715 bring-up patches (none in Bluetooth), with these options and the Bluetooth modules rebuilt:

Test Result
rfcomm and bnep load; RFCOMM TTY/socket layer initialized; no Protocol not supported from bluetoothd pass
Pixel Buds A-Series connect (btmon): link-key auth and encryption, then SDP, RFCOMM (HFP), AVDTP signaling and media, AVRCP pass
PipeWire shows the headset's A2DP sink and HFP source pass
l2ping to the headset, 5 of 5 pass
Disconnect and reconnect without re-pairing, 2 of 2 pass
Reconnect after a reboot without re-pairing pass
Discovery (31 devices found in 12 s) pass
Audio playback and HFP call audio (no sound was played) not tested
BLE devices, LE pairing, BNEP/PAN not tested
Other Macs not tested

Before the change, on the same machine, every connect failed as quoted above. A pairing made on the old kernel also needed re-pairing after a reboot.

Tested on 0abc2f3; the change applies unchanged to the current integration/aurora tip. J715 report: #2663.

Scope

The shipped Fedora kernel-aurora config, and the lab fleet kernels built on Fedora's base config, already set all six options. This change fixes kernels built from defconfig + asahi.config, like the J715 build above, and brings the fragment in line with what Fedora ships.

Merged over the ARM64 defconfig, asahi.config builds Bluetooth without
RFCOMM, without BNEP and with CONFIG_BT_LE off. The defconfig does not
set RFCOMM or BNEP and sets "# CONFIG_BT_LE is not set", and nothing in
asahi.config turns them back on.

Without RFCOMM, bluetoothd cannot set up HFP/HSP. A headset that offers
HFP fails to connect: bluetoothd logs

  Unable to connect Hands-Free Voice gateway: socket(STREAM, RFCOMM):
  Protocol not supported (93)

and the link drops about two seconds later, so A2DP does not come up
either. Without LE, BLE devices and LE pairing are unavailable.

Enable RFCOMM (with the TTY layer), BNEP (with its filters) and the LE
features. They are all modules or features of the bluetooth module
(CONFIG_BT=m), so the kernel image is unchanged.

Signed-off-by: Kazuhide Takahashi <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor

Looks good. RFCOMM (HFP/HSP), BNEP and LE are needed for ordinary Bluetooth use, and the help text says why. One note for the description: the shipped Fedora kernel-aurora config and the lab fleet kernels, which start from Fedora's base config, already have all six options set (CONFIG_BT_RFCOMM=m, CONFIG_BT_LE=y, and so on). So this fixes kernels built from defconfig + asahi.config, like the J715 build in the report, and makes that fragment match what Fedora ships.

Assisted-by: LLM (Claude:Opus 5.5)

@DjDeveloperr DjDeveloperr left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at b8c76132e5cf. 0 code/policy/attribution blockers — holding only for the remaining §5 hardware evidence on the live head.

Checklist Summary (§1–§6)

  • Config & CI (host-tests green): All six options (CONFIG_BT_RFCOMM=m, CONFIG_BT_RFCOMM_TTY=y, CONFIG_BT_BNEP=m, CONFIG_BT_BNEP_MC_FILTER=y, CONFIG_BT_BNEP_PROTO_FILTER=y, CONFIG_BT_LE=y) have their Kconfig dependencies satisfied over arch/arm64/configs/defconfig (BT=m, BT_BREDR=y, TTY=y, CRC32), leave vmlinux/Image unchanged, and align defconfig + asahi.config with what the Fedora/fleet kernel configs already enable.
  • §1–§4, §6: Clean — shared config fragment with no model gating, no cmdline workarounds, standard upstream Kconfig symbols, human-only commit metadata with Signed-off-by:.

Remaining §5 Hardware Rows Needed Before Merge

  1. Live-head verification (b8c76132e5cf or rebased tip): The reported J715 test ran on 0abc2f385e54 (380 commits behind this PR's base 107047f61826) plus local out-of-tree patches; please record a boot/test row on the live head with regression counts (0 SELinux denials [or N/A if SELinux is disabled on Omarchy], 0 failed units, 0 new kernel errors).
  2. BLE coverage (CONFIG_BT_LE=y): BLE devices, LE pairing, BNEP/PAN is currently marked not tested in the PR table — at least a basic BLE check (e.g., LE scan/discovery or pairing on the defconfig + asahi.config build) alongside the RFCOMM/BNEP check would close the loop on the enabled features.

@RyanTheTide

Copy link
Copy Markdown
Contributor

asahi.config on integration/aurora (4a17f73) still has none of the six options, so a defconfig + asahi.config kernel still has no RFCOMM, BNEP or LE. The change merges onto that tip without conflicts and the reviews found nothing to fix. @kazuhidet the last review asks for one more row before merge: the same headset check on a build from the current tip with the regression counts (failed units, new kernel errors), and a basic BLE check (an LE scan or pairing) since CONFIG_BT_LE is part of the change.

@DjDeveloperr DjDeveloperr left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formal §1–§6 review at b8c76132e5cf6715859de3363369fc05edc6b41e against pre-pr-checklist.md (verified against live integration/aurora 70a00e583b03: not superseded).

0 code, policy, attribution, or CI blockers — converting the earlier hold to REQUEST_CHANGES because the §5 exact-head hardware & BLE verification rows remain unposted.

Blockers

  1. §5 (Missing exact-head hardware & regression evidence on b8c76132e5cf / current tip):

    • The J715 test in the PR description was run on integration/aurora 0abc2f385e54 (380+ commits behind this PR's base 107047f61826) plus local out-of-tree patches, and does not include regression counts.
    • Please post a boot + Bluetooth RFCOMM/headset test row on a kernel built from the live head / current integration/aurora tip with explicit regression counts (0 SELinux denials [or N/A if SELinux is disabled], 0 failed units, 0 new kernel errors).
  2. §5 (Missing BLE coverage for CONFIG_BT_LE=y):

    • CONFIG_BT_LE=y is enabled by this change, but BLE devices, LE pairing, BNEP/PAN is still marked not tested in the PR table. Please include at least a basic BLE check (e.g., LE scan/discovery or LE pairing on the defconfig + asahi.config build) alongside the RFCOMM/headset row.

Checklist Verification

  • §1–§3 (Config correctness / scope / safety): Clean. All six options (CONFIG_BT_RFCOMM=m, CONFIG_BT_RFCOMM_TTY=y, CONFIG_BT_BNEP=m, CONFIG_BT_BNEP_MC_FILTER=y, CONFIG_BT_BNEP_PROTO_FILTER=y, CONFIG_BT_LE=y) have their Kconfig dependencies satisfied over arch/arm64/configs/defconfig, leave vmlinux/Image unchanged, align defconfig + asahi.config with the Fedora/fleet configs, and apply cleanly across all Macs with no model gating or cmdline hacks.
  • §4 & §6 (Attribution / clean-room / naming): Clean. Single commit b8c76132e5cf with human author/committer (Kazuhide Takahashi <[email protected]>) and human Signed-off-by: only (zero AI commit trailers).
  • Live CI: Host tests (host-tests) is green on b8c76132e5cf.

@kazuhidet

Copy link
Copy Markdown
Contributor Author

J715 row on a tip build (MacBook Air 15-inch, M4, Mac16,13), OS firmware 26.6.2, stage 1 → aura.

Build

  • integration/aurora b10280c04c2d (486 commits past this PR's base 107047f61826), plus three commits:
  • Config: the J715's own config, which already has all six options, with olddefconfig on that tip. It is not a defconfig + asahi.config build.
  • Release 7.3.0-j715-aurora-tip+, with modules in their own directory. Same compilers as the everyday kernel (clang 21.1.8, rustc 1.93.1).
  • For this boot only, the internal speaker drivers were blocked (module_blacklist=snd_soc_macaudio,snd_soc_tas2764,snd_soc_tas2770, modules left out). The tip doesn't carry this machine's speaker-safety arrangement. This has no effect on Bluetooth.

Result

Check Result
Boot, desktop pass: sddm and the Hyprland session, GPU READY
rfcomm, bnep loaded (RFCOMM ver 1.11, BNEP ver 1.3)
Controller powered, central and peripheral; Handsfree, Handsfree Audio Gateway, Audio Sink and Audio Source registered
Headset A2DP pass: connected, audio played, no drops
Headset HFP connects (RFCOMM up, the headset's input node appears in PipeWire); microphone audio did not arrive (see below)
BLE LE scan, 15 s: 61 devices found
LE pairing, BNEP/PAN not tested

Regression counts

  • SELinux: N/A (not enabled on this install).
  • Failed units: 2, both local services of this install (j713-owner-assets, m4-j715-backlight). They fail the same way on the everyday kernel; neither is related to Bluetooth.
  • Kernel errors: none from Bluetooth. The others:
    • avd probe -2 and hid-generic … no listeners: the same as on the everyday kernel.
    • apple-dcp 286e00000/48ae00000: error -ENODEV: no IOMMU domain; not handing the firmware untranslated DMA addresses, on both dcpext. The everyday kernel prints external DCP not handed over for the same two DCPs. The new text comes from drivers/gpu/drm/apple/dcp.c on the tip, not from this change.
  • bluetoothd, once at connect: AVRCP: failed to create uinput … No such file or directory. CONFIG_INPUT_UINPUT is unset both in this build and in the everyday one. It affects only the headset's media keys.

HFP microphone

  • The profile switch works, but the recording stayed silent.
  • HFP audio goes over SCO, not RFCOMM. This PR doesn't touch SCO or hci_bcm4377.
  • No earlier J715 result for HFP audio exists to compare with. The earlier row didn't test it.
  • I'll look at it separately (codec choice, btmon) and open an issue if it is a kernel problem. I don't consider it a blocker for this config change.

Not covered: LE pairing, BNEP/PAN, a defconfig + asahi.config build, suspend.

@kazuhidet

Copy link
Copy Markdown
Contributor Author

A correction to the HFP line in my tip row above: the HFP microphone works on the tip kernel.

I had written that the microphone audio did not arrive. That came only from the input level indicator, which stayed still during a test recording. That indicator doesn't move on the J715's everyday kernel either, where recording works. So it was no evidence.

Re-test. Same tip kernel as the row (7.3.0-j715-aurora-tip+: integration/aurora b10280c04c2d + this PR + #2666 + #2672), same headset. Each run:

  • switched the card to an HFP profile;
  • recorded 10 s with pw-record from the headset's source, held to it (node.dont-fallback; link checked as bluez_input → pw-record, fed by api.bluez5.sco.source);
  • played the recording back to the headset, and I listened.
Profile eSCO setup Recording (10 s) Heard my voice on playback
mSBC (headset-head-unit) Success, air mode Transparent RMS 1212 yes
CVSD (headset-head-unit-cvsd) Success, air mode CVSD RMS 2412 yes
mSBC, speaking 2 m away behind a closed door Success, air mode Transparent RMS 1164 yes
  • The third run rules out the Mac's own microphones as the source.
  • Everyday kernel: the same recordings give the same result (mSBC, CVSD, and from behind the door).
  • This boot: speaker drivers blocked as in the row; playback went only to the headset.

Updated HFP line for the tip row:

Headset HFP pass: connects (RFCOMM), eSCO set up (mSBC and CVSD), microphone records

The input level indicator not moving is a separate UI matter, seen on both kernels. It is not a capture failure and not related to this PR. There is no HFP issue to open.

@github-actions github-actions Bot added changes-requested A reviewer requested changes (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) blast:all Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) and removed needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Merge readiness at b8c76132: ready to merge

Check Detail
CI at head ok 1 check passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok in the PR body at b8c76132
Conflicts ok none
PR text ok Risk: two-way · every Mac built from defconfig + asahi.config (Bluetooth modules only; vmlinux and Image unchanged)

Areas: none matched in CODEOWNERS
Merge: gh pr merge 2665 --merge (Owners and Core through the bypass: add --admin).

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE at b8c76132e5cf

Blockers: none.

Checked: thank you. No Apple material; three config symbols (RFCOMM, BNEP, LE) enabled in asahi.config. Your J715 tip row has Bluetooth audio, HFP with the microphone working, and tethering. CI green. It changes the default kernel config, so it merges once an Owner agrees; I've asked.

@DjDeveloperr
DjDeveloperr dismissed their stale review November 25, 2026 06:06

Superseded by the review at b8c7613

@github-actions github-actions Bot removed changes-requested A reviewer requested changes (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 25, 2026
@kazuhidet

Copy link
Copy Markdown
Contributor Author

Thanks for the review. One correction to the summary: when you reviewed, tethering hadn't been tested. bnep only loaded. So I ran it today. It works, and it also showed a driver bug outside this PR.

BNEP/PAN row (J715 M4 Air, OS firmware 26.6.2):

  • Kernel: the everyday 7.3.0-j715-aurora+, integration/aurora 0abc2f3 + local J715 patches (none in Bluetooth). Its Bluetooth modules were built with the options of b8c76132.
  • Setup: the J715 is the PAN user (PANU). The phone is the access point (NAP). Addresses come over DHCP on bnep0, and the tests are bound to bnep0.
Phone Result
Pixel 9a, Android 17 connects: Network1.Connect(nap) succeeds, bnep0 gets an address, ping to the phone and to 1.1.1.1 40/40. A 5 MB HTTPS download completes (about 88 KB/s), but larger transfers fail: see below
iPhone 16 Pro, iOS 27.2.1 BNEP and bnep0 come up, but the phone gives no DHCP lease, and from the second connect on it closes the link after about 5 s. I haven't looked further. It may be iOS's hotspot policy

The driver bug (not this PR). During the downloads, hci_bcm4377 refused 16 outgoing ACL frames:

hci_bcm4377 0000:01:00.1: payload len 1451 is too large for ring 5 (max is 0 or 1032)
Bluetooth: hci0: sending frame failed (-22)
  • With these drops, a second download failed after about 15 s (2 of 2). Once, the ACL link stalled (link tx timeout), and the next connect failed.
  • From the source:
    • The driver's ACL transfer ring takes at most MAX_ACL_PAYLOAD_SIZE = 1032 bytes.
    • The core fragments ACL data to the ACL MTU the controller reports, and hci_bcm4377 doesn't cap it.
    • An M1 (BCM4378) reports 1021, so its frames fit. The J715's controller must report at least 1447. The exact value is still to be read.
  • Not caused by this PR: any ACL traffic above 1032 bytes hits it. Tethering is just the first thing here that sends it.
  • The fix test: capping acl_mtu/le_mtu at HCI_MAX_ACL_SIZE in the driver's post_init. It's built and not yet run on the J715. If it works, it'll be a separate PR.

For this PR: the options do what they should. RFCOMM and BNEP load, and PAN connects and passes traffic. The large-frame drops are the driver's, and they don't depend on these options. So I don't think this PR needs to wait for the driver fix.

@kazuhidet

Copy link
Copy Markdown
Contributor Author

Follow-up on the driver bug above. The J715's controller reports an ACL MTU of 2586, so fragments up to 2590 bytes reach a ring that takes 1032.

With acl_mtu capped at 1024 in hci_bcm4377, the same tethering test passes: 0 refused frames, 5 MB downloads 4/4 and 2 MB uploads 4/4. The fix is in #3138. This PR doesn't need it, as above.

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed ready-to-merge Meets the merge policy: merge it (bot) labels Nov 25, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

b8c76132e5cf (batched cleanly in J616s Batch #2 5b411e230229 over main 95a983c08be4, 0 merge-tree diffs across all 1 changed files) J616s (MacBook Pro 16" M4 Pro, T6040, Apple M4 Pro (G16S B1), macOS 26.6.2 fw, guarded one-shot 7.3.0-aurora-pr2905+, default cmdline, stock Stage 2 1.0.0b17, boot_id=de17fad3) PASS: 0 failed units, Enforcing, 0 new AVC (1 matching baseline), 0 GPU faults, 0 errors in this subsystem, real rtc1 s2idle 2/2 (success=2 fail=0), eDP connected pre/post-sleep, 406600000.sep + 514600000.mtp RTKit v12 (AppleMTPFirmwareMac-5340.61.4~502, HID keyboard/trackpad/accel/actuator/touch) clean, Borealis VK dEQP-VK.api.smoke.* 8/8 (pre & post-sleep) + glsl.loops.* 624/624, Wi-Fi 3/3 ping pre/post-sleep; stock 7.3.0-aurora-fleet89 restored & verified (b67edc6c).

@RyanTheTide
RyanTheTide merged commit b45f9e7 into aurora-silicon:main Nov 26, 2026
2 checks passed
@RyanTheTide

Copy link
Copy Markdown
Contributor

Merged into main. Thank you! It merged on the J616s batch row at this head and Dj's review.

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

Labels

blast:all Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) ready-to-merge Meets the merge policy: merge it (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants