OSDN Git Service

HCI: don't abort on timeout
authorChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 6 Dec 2017 09:57:21 +0000 (17:57 +0800)
committerMauro Rossi <issor.oruam@gmail.com>
Fri, 9 Sep 2022 22:19:43 +0000 (00:19 +0200)
Timeout is normal. Especially when the device is suspending.
Don't abort it stupidly.

hci/src/hci_layer.cc

index 1cd3a49..1eb3427 100644 (file)
@@ -477,10 +477,6 @@ static void hci_timeout_abort(void) {
 
   LOG_ERROR("%s restarting the Bluetooth process.", __func__);
   hci_close_firmware_log_file(hci_firmware_log_fd);
-
-  // We shouldn't try to recover the stack from this command timeout.
-  // If it's caused by a software bug, fix it. If it's a hardware bug, fix it.
-  abort();
 }
 
 static void hci_root_inflamed_abort() {