* [PATCH v1] Bluetooth: hci_sync: Add support for HCI_LE_Set_Host_Feature [v2]
@ 2026-05-26 17:03 Luiz Augusto von Dentz
2026-05-26 17:50 ` patchwork-bot+bluetooth
2026-05-26 18:15 ` [v1] " bluez.test.bot
0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2026-05-26 17:03 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
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 <luiz.von.dentz@intel.com>
---
include/net/bluetooth/hci.h | 6 ++++++
net/bluetooth/hci_sync.c | 21 ++++++++++++++++++++-
2 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 572b1c620c5d..26a84dbf548a 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -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;
diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index aff8562a8690..944bd29394c2 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -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) */
--
2.53.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v1] Bluetooth: hci_sync: Add support for HCI_LE_Set_Host_Feature [v2]
2026-05-26 17:03 [PATCH v1] Bluetooth: hci_sync: Add support for HCI_LE_Set_Host_Feature [v2] Luiz Augusto von Dentz
@ 2026-05-26 17:50 ` patchwork-bot+bluetooth
2026-05-26 18:15 ` [v1] " bluez.test.bot
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2026-05-26 17:50 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Tue, 26 May 2026 13:03:41 -0400 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> 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 <luiz.von.dentz@intel.com>
>
> [...]
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [v1] Bluetooth: hci_sync: Add support for HCI_LE_Set_Host_Feature [v2]
2026-05-26 17:03 [PATCH v1] Bluetooth: hci_sync: Add support for HCI_LE_Set_Host_Feature [v2] Luiz Augusto von Dentz
2026-05-26 17:50 ` patchwork-bot+bluetooth
@ 2026-05-26 18:15 ` bluez.test.bot
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2026-05-26 18:15 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
[-- Attachment #1: Type: text/plain, Size: 2204 bytes --]
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-05-26 18:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-26 17:03 [PATCH v1] Bluetooth: hci_sync: Add support for HCI_LE_Set_Host_Feature [v2] Luiz Augusto von Dentz
2026-05-26 17:50 ` patchwork-bot+bluetooth
2026-05-26 18:15 ` [v1] " bluez.test.bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox