OSDN Git Service

hci: Reduce HCI timeout to 2 seconds
authorMyles Watson <mylesgw@google.com>
Mon, 6 Mar 2017 17:07:37 +0000 (09:07 -0800)
committerMyles 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

index 1137a43..18d57bb 100644 (file)
@@ -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;