summaryrefslogtreecommitdiff
path: root/src/adapter.h
diff options
context:
space:
mode:
authorArchie Pusaka <apusaka@chromium.org>2020-09-15 11:04:19 +0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-09-15 09:50:21 -0700
commit48d8f08a54003c1526cb614d00a16c08b6471aef (patch)
tree4dbdb92ec2988accfa57393195f448ee0c0fbf78 /src/adapter.h
parent6611b72600c370ec31795ab48a222594c4afb7ee (diff)
downloadbluez-48d8f08a54003c1526cb614d00a16c08b6471aef.tar.gz
device: don't wait for timeout if RemoveDevice is called
RemoveDevice on adapter interface used to remove a device, even when the device is connected. However, since the introduction of the new 30 seconds timeout when setting a device as temporary, RemoveDevice doesn't immediately remove a connected device, but only disconnects it and waits for the timer to expire before effectively removes it. This patch removes the device as soon as it gets disconnected, provided the disconnection is triggered by a call to RemoveDevice. The regular timeout still applies for other cases. Tested manually by calling RemoveDevice on a connected device, and with ChromeOS autotest setup.
Diffstat (limited to 'src/adapter.h')
-rw-r--r--src/adapter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/adapter.h b/src/adapter.h
index 960a00c83..11b93d202 100644
--- a/src/adapter.h
+++ b/src/adapter.h
@@ -29,6 +29,8 @@
#include <lib/bluetooth.h>
#include <lib/sdp.h>
+#define ADAPTER_INTERFACE "org.bluez.Adapter1"
+
#define MAX_NAME_LENGTH 248
/* Invalid SSP passkey value used to indicate negative replies */