Bluetooth: hci_sync: Add support for HCI_LE_Set_Host_Feature [v2]
Subsystems (2)
Luiz Augusto von Dentz
maintainerPATCH 1/1 Bluetooth: hci_sync: Add support for HCI_LE_Set_Host_Feature [v2]
From: Luiz Augusto von Dentz <[email protected]>
This adds support for using HCI_LE_Set_Host_Feature [v2] instead of v1 if LL Extented Features is supported and the controller supports the command.
--- include/net/bluetooth/hci.h | 6 ++++++ net/bluetooth/hci_sync.c | 21 ++++++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-)
include/net/bluetooth/hci.h +6 -0
@@ -2486,6 +2486,12 @@ struct hci_rp_le_cs_test {#define HCI_OP_LE_CS_TEST_END 0x2096 +#define HCI_OP_LE_SET_HOST_FEATURE_V2 0x2097 +struct hci_cp_le_set_host_feature_v2 { +__u16 bit_number; +__u8 bit_value; +} __packed; +/* ---- HCI Events ---- */ struct hci_ev_status {__u8 status;
net/bluetooth/hci_sync.c +20 -1
@@ -4583,11 +4583,30 @@ static int hci_set_le_support_sync(struct hci_dev *hdev) sizeof(cp), &cp, HCI_CMD_TIMEOUT); } +/* LE Set Host Feature V2 */ +static int hci_le_set_host_feature_v2_sync (struct hci_dev *hdev,u16 bit, +u8 value) +{ +struct hci_cp_le_set_host_feature_v2 cp; + +memset (&cp,0 ,sizeof (cp)); + +/* Connected Isochronous Channels (Host Support) */ + cp.bit_number = bit; + cp.bit_value = value; + +return __hci_cmd_sync_status (hdev,HCI_OP_LE_SET_HOST_FEATURE_V2 , +sizeof (cp), &cp,HCI_CMD_TIMEOUT ); +} +/* LE Set Host Feature */ -static int hci_le_set_host_feature_sync (struct hci_dev *hdev,u8 bit,u8 value) +static int hci_le_set_host_feature_sync (struct hci_dev *hdev,u16 bit,u8 value) {struct hci_cp_le_set_host_feature cp; +if (ll_ext_feature_capable (hdev) && hdev->commands[47 ] &BIT (4 )) +return hci_le_set_host_feature_v2_sync (hdev, bit, value); +memset (&cp,0 ,sizeof (cp));/* Connected Isochronous Channels (Host Support) */
Signature · 1 line
2.53.0
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:
Quoted 9 lines · On Tue, 26 May 2026 13:03:41 -0400 you wrote:
From: Luiz Augusto von Dentz <[email protected]>
This adds support for using
HCI_LE_Set_Host_Feature[v2] instead of v1 if LL Extented Features is supported and the controller supports the command.Signed-off-by Luiz Augusto von Dentz <[email protected]>[...]
Here is the summary with links:
- [v1] Bluetooth: hci_sync: Add support for HCI_LE_Set_Host_Feature [v2]
https://git.kernel.org/bluetooth/bluetooth-next/c/ec9b9c3b31f3
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1101148
---Test result---
Test Summary:
CheckPatch PASS 0.99 seconds VerifyFixes PASS 0.13 seconds VerifySignedoff PASS 0.14 seconds GitLint PASS 0.33 seconds SubjectPrefix PASS 0.17 seconds BuildKernel PASS 25.82 seconds CheckAllWarning PASS 28.25 seconds CheckSparse PASS 27.01 seconds BuildKernel32 PASS 24.90 seconds TestRunnerSetup PASS 530.10 seconds TestRunner_l2cap-tester PASS 61.24 seconds TestRunner_iso-tester PASS 79.43 seconds TestRunner_bnep-tester PASS 19.32 seconds TestRunner_mgmt-tester FAIL 211.47 seconds TestRunner_rfcomm-tester PASS 25.26 seconds TestRunner_sco-tester PASS 32.76 seconds TestRunner_ioctl-tester PASS 26.30 seconds TestRunner_mesh-tester FAIL 26.01 seconds TestRunner_smp-tester PASS 23.28 seconds TestRunner_userchan-tester PASS 20.37 seconds TestRunner_6lowpan-tester PASS 23.07 seconds IncrementalBuild PASS 24.29 seconds
Details
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner Output:
Total: 494, Passed: 489 (99.0%), Failed: 1, Not Run: 4
Failed Test Cases
Read Exp Feature - Success Failed 0.281 seconds
##############################
Test: TestRunner_mesh-tester - FAIL
Desc: Run mesh-tester with test-runner Output:
Total: 10, Passed: 8 (80.0%), Failed: 2, Not Run: 0
Failed Test Cases
Mesh - Send cancel - 1 Timed out 2.204 seconds Mesh - Send cancel - 2 Timed out 1.990 seconds
https://github.com/bluez/bluetooth-next/pull/246
---
Regards,
Linux Bluetooth