Bluez version is greater than or equal to 5.69 , when paired successfully, turn Bluetooth off and then on, unable to receive a low-power mouse and keyboard connection.
After analysis, the mgmt command(MGMT_OP_ADD_DEVICE) was not sent to the kernel after the pairing connection was completed.
Here's how to fix the patch
diff --git a/src/device.c b/src/device.c
index 097b1fbba..7b18781c8 100644
--- a/src/device.c
+++ b/src/device.c
@@ -6062,6 +6062,10 @@ void btd_device_set_temporary(struct btd_device *device, bool temporary)
if (device->bredr)
adapter_accept_list_add(device->adapter, device);
+ else if (device->le) {
+ device->disable_auto_connect = FALSE;
+ device_set_auto_connect(device, TRUE);
+ }
store_device_info(device);
web address: https://github.com/bluez/bluez/issues/902
Attachment:
fix.patch
Description: Binary data