summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMyles Watson <mylesgw@google.com>2017-10-06 11:22:51 -0700
committerMyles Watson <mylesgw@google.com>2017-10-11 17:05:30 +0000
commitea5cf6e3b72cf68a50ca75ee4c3ad43f679e1d70 (patch)
treef93c2ae192ecf9c1bd89dd5ef3682f618c21beb5
parent1a2ea0fb6b430074e90bf957b0c3c8e00c77004a (diff)
downloadandroid_system_bt-ea5cf6e3b72cf68a50ca75ee4c3ad43f679e1d70.tar.gz
android_system_bt-ea5cf6e3b72cf68a50ca75ee4c3ad43f679e1d70.tar.bz2
android_system_bt-ea5cf6e3b72cf68a50ca75ee4c3ad43f679e1d70.zip
HCI: Restart 5 seconds after an HCI timeout
Bug: 67209266 Test: build Change-Id: I69a4a17382742327268a80dbc5c5be49059ecb3c (cherry picked from commit d48d32d04ae9f4d81012f2146f8e746c4a05a0f9) Merged-In: I69a4a17382742327268a80dbc5c5be49059ecb3c
-rw-r--r--hci/src/hci_layer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/hci/src/hci_layer.cc b/hci/src/hci_layer.cc
index 563379f0d..d1fa92031 100644
--- a/hci/src/hci_layer.cc
+++ b/hci/src/hci_layer.cc
@@ -78,7 +78,7 @@ static const int BT_HCI_RT_PRIORITY = 1;
// Abort if there is no response to an HCI command.
static const uint32_t COMMAND_PENDING_TIMEOUT_MS = 2000;
-static const uint32_t COMMAND_TIMEOUT_RESTART_US = 500000;
+static const uint32_t COMMAND_TIMEOUT_RESTART_US = 5000000;
// Our interface
static bool interface_created;