Skip to content

btcentauri: LE pairing fixes for the N1 and the J815 bind - #1529

Merged
DjDeveloperr merged 5 commits into
aurora-silicon:integration/aurorafrom
m0d16l14n1:j815/btcentauri
Nov 11, 2026
Merged

DjDeveloperr merged 5 commits into
aurora-silicon:integration/aurorafrom
m0d16l14n1:j815/btcentauri

Conversation

@m0d16l14n1

Copy link
Copy Markdown
Contributor

Fixes that take LE pairing on the N1 from "found but never connects" to working, plus the J815 bind:

  1. Factory address from local-bd-address via WriteBdAddr in the native startup (as btcentauri_t6050.c); without it the controller reports 00:00:00:00:00:00 and bluetoothd ignores it. factory_address=0 turns it off.
  2. LE ext-adv PHY fixup (HCI_QUIRK_FIXUP_LE_EXT_ADV_REPORT_PHY, as on T6050). fixup_adv_phy=0 turns it off.
  3. No controller duplicate filtering: the N1 never resets its duplicate filter, so the passive scan for a pending connection never reported the device. scan_dup_filter=1 restores it.
  4. Host-side accept-list filtering: with filter policy 1 the N1 sent no reports for 29 s. Reporting an accept list size of 0 makes hci_sync scan with policy 0 and match pend_le_conns itself. accept_list=1 restores it.
  5. Bind on J815.

Each knob is a module parameter so a regression can be isolated; debugfs status counts the rewrites.

Tested on J815: a Logitech LE mouse pairs in about one second, HID input works, and it reconnects after being switched off and on and after s2idle.

Part of the J815 (MacBook Air 15-inch, M5, T8142) bring-up: board results are summarised in discussion #135. Tested on a J815 with a macOS 27.0 stub (firmware 27.0) through aura Stage 2.

Assisted-by: Claude Opus 5.5

Unless the native_startup diagnostic is set, the N1 is never given a
BD_ADDR. It then reports 00:00:00:00:00:00 and bluetoothd ignores the
controller ("No Bluetooth address for index 0").

When the device tree provides a valid local-bd-address (the loader fills
it from the ADT for the bluetooth0 alias), send it with WriteBdAddr in
the native startup sequence before the first HCI reset, as
btcentauri_t6050.c does. Without one, nothing changes.
factory_address=0 turns this off.

Tested on J815 (MacBook Air 15-inch, M5) with the other btcentauri
fixes in this series: an LE mouse pairs in about one second, its HID
input works, and it reconnects after being switched off and on and
after s2idle.

Assisted-by: Claude Opus 5.5
Signed-off-by: Nick <[email protected]>
…eports

As on T6050, the N1 sets bits above the PHY value in LE Extended
Advertising Reports. Unmasked, hci_le_ext_create_conn_sync() matches no
PHY, so LE Extended Create Connection goes out with no initiating PHY
and LE devices are found but never connect.

Set HCI_QUIRK_FIXUP_LE_EXT_ADV_REPORT_PHY, as btcentauri_t6050.c does.
fixup_adv_phy=0 turns it off.

Tested on J815 (MacBook Air 15-inch, M5) with the other btcentauri
fixes in this series: an LE mouse pairs in about one second, its HID
input works, and it reconnects after being switched off and on and
after s2idle.

Assisted-by: Claude Opus 5.5
Signed-off-by: Nick <[email protected]>
The N1 does not reset its duplicate filter when scanning is enabled
again. A discovery started 16 s after another one reported 11 of about
78 nearby addresses. The passive scan that hci_sync starts for a pending
LE connection only reported addresses the controller had not sent
before. A mouse found in discovery therefore never matched
pend_le_conns, and no LE Create Connection was sent.

Rewrite Filter_Duplicates to 0 in LE Set (Extended) Scan Enable. The host
copes with repeated reports. scan_dup_filter=1 restores controller
filtering. debugfs status counts the rewrites.

Tested on J815 (MacBook Air 15-inch, M5) with the other btcentauri
fixes in this series: an LE mouse pairs in about one second, its HID
input works, and it reconnects after being switched off and on and
after s2idle.

Assisted-by: Claude Opus 5.5
Signed-off-by: Nick <[email protected]>
…ctions

After pairing finds an LE device, hci_sync puts it on the accept list and
scans passively with filter policy 1. With that policy, the N1 sent no
advertising report and no other event for 29 s, so LE Extended Create
Connection was never sent and the pairing was cancelled.

Report an LE accept list size of 0. hci_update_accept_list_sync() then
finds no room and scans with filter policy 0, and the host matches
pend_le_conns itself, as for a controller whose list is full.
accept_list=1 restores the controller's list. debugfs status counts
the rewritten replies.

Tested on J815 (MacBook Air 15-inch, M5) with the other btcentauri
fixes in this series: an LE mouse pairs in about one second, its HID
input works, and it reconnects after being switched off and on and
after s2idle.

Assisted-by: Claude Opus 5.5
Signed-off-by: Nick <[email protected]>
J815 carries the same N1 as J813 (function 2, device 0x1903) behind the
same T8142 port, started by the centauri Wi-Fi function. Accept its
machine compatible so the HCI side probes there too.

Tested on J815: LE HID mouse pairing, reconnect after power cycling the
mouse and after s2idle.

Assisted-by: Claude Opus 5.5
Signed-off-by: Nick <[email protected]>

@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.

Codex (GPT-6.1 Sol), reviewing on @DjDeveloperr’s behalf.

No blocking source findings in the reviewed net change. Reviewed the N1 LE-pairing and J815 binding changes: status/admission and event flow remain scoped to the intended controller path. Concrete owner pairing reports support the bugfix; no broader Bluetooth-feature qualification is inferred.

Hosted contributor workflow approvals were unblocked; source approval does not waive any pending CI/native build or dependency gate. Hardware reports are attributed to their authors, not new tests by this thread. No images/default-loader/hardware changes were performed.

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.

2 participants