=?gb18030?b?Ymx1ZXogcGF0Y2ijqEFmdGVyIHBhaXJpbmcgc3Vj?==?gb18030?b?Y2Vzc2Z1bGx5LCBsb3cgcG93ZXIgbW91c2UgYW5k?==?gb18030?b?IGtleWJvYXJkIGNvbm5lY3Rpb25zIGNhbm5vdCBi?==?gb18030?b?ZSByZWNlaXZlZKOp?=

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

...À´ÁË
294305068@xxxxxx
 

Attachment: 1.patch
Description: Binary data


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux