* [RFC PATCH bluetooth-next] Bluetooth: hci_event: Use General Bonding for ATS2851
@ 2026-08-20 14:05 Li Daoxun
2026-08-20 15:15 ` [RFC,bluetooth-next] " bluez.test.bot
0 siblings, 1 reply; 2+ messages in thread
From: Li Daoxun @ 2026-08-20 14:05 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Marcel Holtmann, Luiz Augusto von Dentz, linux-kernel
Actions Semiconductor ATS2851 controllers can stall BR/EDR Secure
Simple Pairing when the host replies to an IO Capability Request with
Dedicated Bonding.
This was observed with an Actions controller at USB ID 10d7:b012,
revision 88.91, while pairing a Sony WF-C510. After the host sent
Dedicated Bonding, no peer IO Capability Response arrived and the local
host disconnected after approximately 30 seconds.
Sending General Bonding instead allowed the IO capability exchange to
continue, followed by successful Simple Pairing, link key notification
and encryption.
Add a quirk that substitutes General Bonding in the HCI IO Capability
Reply while preserving the MITM bit and the connection authentication
state. Enable it for ATS2851 based devices.
Signed-off-by: Li Daoxun <lidaoxun25@mails.ucas.ac.cn>
---
drivers/bluetooth/btusb.c | 1 +
include/net/bluetooth/hci.h | 10 ++++++++++
net/bluetooth/hci_event.c | 4 ++++
3 files changed, 15 insertions(+)
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 2bae85b001..e82cb0c44c 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -4384,6 +4384,7 @@ static int btusb_probe(struct usb_interface *intf,
hci_set_quirk(hdev, HCI_QUIRK_BROKEN_READ_ENC_KEY_SIZE);
hci_set_quirk(hdev, HCI_QUIRK_BROKEN_EXT_CREATE_CONN);
hci_set_quirk(hdev, HCI_QUIRK_BROKEN_WRITE_AUTH_PAYLOAD_TIMEOUT);
+ hci_set_quirk(hdev, HCI_QUIRK_BROKEN_DEDICATED_BONDING);
}
if (!reset)
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 1641d879db..ee01795ea5 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -320,6 +320,16 @@ enum {
*/
HCI_QUIRK_BROKEN_WRITE_AUTH_PAYLOAD_TIMEOUT,
+ /*
+ * When this quirk is set, Dedicated Bonding authentication
+ * requirements are sent to the controller as General Bonding while
+ * preserving the MITM requirement. This is required for Actions
+ * Semiconductor ATS2851 based controllers, which can fail to continue
+ * the SSP IO capability exchange with some peers when Dedicated Bonding
+ * is used.
+ */
+ HCI_QUIRK_BROKEN_DEDICATED_BONDING,
+
/* When this quirk is set, MSFT extension monitor tracking by
* address filter is supported. Since tracking quantity of each
* pattern is limited, this feature supports tracking multiple
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 2f5e21ff97..5496913d8d 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -5386,6 +5386,10 @@ static void hci_io_capa_request_evt(struct hci_dev *hdev, void *data,
conn->auth_type &= HCI_AT_NO_BONDING_MITM;
cp.authentication = conn->auth_type;
+ if (hci_test_quirk(hdev, HCI_QUIRK_BROKEN_DEDICATED_BONDING) &&
+ (cp.authentication & ~0x01) == HCI_AT_DEDICATED_BONDING)
+ cp.authentication = HCI_AT_GENERAL_BONDING |
+ (cp.authentication & 0x01);
cp.oob_data = bredr_oob_data_present(conn);
hci_send_cmd(hdev, HCI_OP_IO_CAPABILITY_REPLY,
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [RFC,bluetooth-next] Bluetooth: hci_event: Use General Bonding for ATS2851
2026-08-20 14:05 [RFC PATCH bluetooth-next] Bluetooth: hci_event: Use General Bonding for ATS2851 Li Daoxun
@ 2026-08-20 15:15 ` bluez.test.bot
0 siblings, 0 replies; 2+ messages in thread
From: bluez.test.bot @ 2026-08-20 15:15 UTC (permalink / raw)
To: linux-bluetooth, lidaoxun25
[-- Attachment #1: Type: text/plain, Size: 2389 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=1149156
---Test result---
Test Summary:
CheckPatch PASS 0.97 seconds
VerifyFixes PASS 0.06 seconds
VerifySignedoff PASS 0.13 seconds
GitLint PASS 0.19 seconds
SubjectPrefix PASS 0.06 seconds
BuildKernel PASS 27.00 seconds
CheckAllWarning PASS 30.33 seconds
CheckSparse PASS 28.45 seconds
BuildKernel32 PASS 26.13 seconds
CheckKernelLLVM SKIP 0.00 seconds
TestRunnerSetup PASS 497.49 seconds
TestRunner_l2cap-tester PASS 71.44 seconds
TestRunner_iso-tester PASS 76.86 seconds
TestRunner_bnep-tester PASS 19.02 seconds
TestRunner_mgmt-tester FAIL 218.98 seconds
TestRunner_rfcomm-tester PASS 25.82 seconds
TestRunner_sco-tester PASS 31.22 seconds
TestRunner_ioctl-tester PASS 26.29 seconds
TestRunner_mesh-tester FAIL 25.85 seconds
TestRunner_smp-tester PASS 23.70 seconds
TestRunner_userchan-tester PASS 20.16 seconds
TestRunner_6lowpan-tester PASS 23.52 seconds
IncrementalBuild PASS 25.87 seconds
Details
##############################
Test: CheckKernelLLVM - SKIP
Desc: Build kernel with LLVM + context analysis
Output:
Clang not found
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:
Total: 501, Passed: 496 (99.0%), Failed: 1, Not Run: 4
Failed Test Cases
Read Exp Feature - Success Failed 0.240 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.284 seconds
Mesh - Send cancel - 2 Timed out 1.987 seconds
https://github.com/bluez/bluetooth-next/pull/624
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-20 15:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-20 14:05 [RFC PATCH bluetooth-next] Bluetooth: hci_event: Use General Bonding for ATS2851 Li Daoxun
2026-08-20 15:15 ` [RFC,bluetooth-next] " 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