OSDN Git Service
(root)
/
android-x86
/
system-bt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bf2285
)
hci: Reduce HCI timeout to 2 seconds
author
Myles Watson
<mylesgw@google.com>
Mon, 6 Mar 2017 17:07:37 +0000
(09:07 -0800)
committer
Myles Watson
<mylesgw@google.com>
Mon, 6 Mar 2017 21:42:34 +0000
(13:42 -0800)
Test: Bluetooth starts/stops, Bluetooth scan works
Change-Id: I4b04d71d57f45956898ff1a99e495195b54f4e8e
hci/src/hci_layer.cc
patch
|
blob
|
history
diff --git
a/hci/src/hci_layer.cc
b/hci/src/hci_layer.cc
index
1137a43
..
18d57bb
100644
(file)
--- a/
hci/src/hci_layer.cc
+++ b/
hci/src/hci_layer.cc
@@
-60,7
+60,8
@@
typedef struct {
#define DEFAULT_STARTUP_TIMEOUT_MS 8000
#define STRING_VALUE_OF(x) #x
-static const uint32_t COMMAND_PENDING_TIMEOUT_MS = 8000;
+// Abort if there is no response to an HCI command within two seconds.
+static const uint32_t COMMAND_PENDING_TIMEOUT_MS = 2000;
// Our interface
static bool interface_created;