From 22d825fc1a2b25cee35f838a493191f884af8ccc Mon Sep 17 00:00:00 2001 From: Jesse Melhuish Date: Thu, 3 Mar 2022 21:40:30 +0000 Subject: floss: Set connectable on startup to let devices reconnect. When a device that disconnected from the remote side disconnects it can now reconnect without action from the host. Bug: 210486263 Tag: #floss Test: Verified that disconnected device reconnects automatically. Change-Id: I6d3940d0d556ae14da1b2433fc14466c6fc5e445 --- system/gd/rust/linux/stack/src/bluetooth.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'system/gd/rust/linux/stack/src') diff --git a/system/gd/rust/linux/stack/src/bluetooth.rs b/system/gd/rust/linux/stack/src/bluetooth.rs index 1d221e84a2..49e9289e4d 100644 --- a/system/gd/rust/linux/stack/src/bluetooth.rs +++ b/system/gd/rust/linux/stack/src/bluetooth.rs @@ -498,6 +498,9 @@ impl BtifBluetoothCallbacks for Bluetooth { // Also need to manually request some properties self.intf.lock().unwrap().get_adapter_property(BtPropertyType::ClassOfDevice); + + // Ensure device is connectable so that disconnected device can reconnect + self.set_connectable(true); } } -- cgit v1.2.3