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:
e140c13
)
HCI: don't abort on timeout
author
Chih-Wei Huang
<cwhuang@linux.org.tw>
Wed, 6 Dec 2017 09:57:21 +0000
(17:57 +0800)
committer
Mauro 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
patch
|
blob
|
history
diff --git
a/hci/src/hci_layer.cc
b/hci/src/hci_layer.cc
index
1cd3a49
..
1eb3427
100644
(file)
--- a/
hci/src/hci_layer.cc
+++ b/
hci/src/hci_layer.cc
@@
-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() {