Repository navigation
DEMO (not for merge): LE Data Length Change fix for #514 on macOS Tahoe with AX201 pair issue - #515
Draft
emulatorchen wants to merge 7 commits into
Draft
emulatorchen wants to merge 7 commits into
emulatorchen wants to merge 7 commits into
Conversation
Patch provided by plooshi.
…AIT_FOR_LENGTH (OpenIntelWireless#514) On macOS Tahoe a BLE HID link connects, encrypts and completes PHY, but bluetoothd stalls at LE_READY_WAIT_FOR_LENGTH: the Intel controller never emits an LE Data Length Change event, so GATT never runs and no HID binding happens. Resend HCI_OP_LE_READ_REMOTE_FEATURES twice and rewrite the resulting duplicate LE Read Remote Features Complete events in a 3-stage machine: stage 0 passes the real event through, stage 1 rewrites to a fake PHY Update Complete, stage 2 rewrites to a fake LE Data Length Change (27 octets / 328us, handle copied from the live event). This clears the stall and HID binds. Also bump MODULE_VERSION to 2.5.2.
emulatorchen
force-pushed
the
feat/le-data-length-injection
branch
from
October 10, 2026 05:36
2894979 to
c39d957
Compare
emulatorchen
marked this pull request as draft
October 10, 2026 05:37
This was referenced Oct 10, 2026
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.
This is a patch for AX201 that won't get pair with keyboard but fine for AirPods and Trackballs that do not need pair code
I think most of people here with AX201 shared the same problem so this is a PR demo for you to build it your own. This patch verified under OC 1.0.7 with Tahoe 26.7.1
Opened only as a reference / demo for anyone hitting #514 (BLE HID devices won't bind on macOS Tahoe). Not intended to be merged here. The direct-upstream PR is lshbluesky#1.
Problem
On macOS Tahoe a BLE HID link connects, encrypts and completes PHY, but
bluetoothdstalls atLE_READY_WAIT_FOR_LENGTH: the Intel controller never emits an LE Data Length Change event, so GATT never runs and the HID device never binds.Fix
Resend
HCI_OP_LE_READ_REMOTE_FEATUREStwice and rewrite the resulting duplicate LE Read Remote Features Complete events in a 3-stage machine:This clears the stall and the BLE HID device binds. Verified on an Intel controller with a BLE keyboard on macOS Tahoe.
Important
This fix was written by Claude, an AI assistant. It is provided as-is, with no warranty — please review and test it, and use it at your own risk.