system/bt
Revisión | 36ab0e7014176ce8ed4e7766614d511666701888 (tree) |
---|---|
Tiempo | 2016-11-15 10:16:30 |
Autor | Jaap Jan Meijer <jjmeijer88@gmai...> |
Commiter | Jaap Jan Meijer |
[REVERT ME] Ignore time out for HCI_WRITE_SCAN_ENABLE command
Sometimes the HCI_WRITE_SCAN_ENABLE command times out on HCI USB BT devices but
the device works properly so ignore it for now.
Change-Id: I90518233a689538d9067e7e09fa67347063fbd2a
@@ -587,6 +587,11 @@ static void command_timed_out(UNUSED_ATTR void *context) { | ||
587 | 587 | waiting_command_t *wait_entry = list_front(commands_pending_response); |
588 | 588 | pthread_mutex_unlock(&commands_pending_response_lock); |
589 | 589 | |
590 | + if (wait_entry->opcode == HCI_WRITE_SCAN_ENABLE) { | |
591 | + LOG_WARN(LOG_TAG, "%s hci layer timeout waiting for response to HCI_WRITE_SCAN_ENABLE, ignoring!", __func__); | |
592 | + return; | |
593 | + } | |
594 | + | |
590 | 595 | // We shouldn't try to recover the stack from this command timeout. |
591 | 596 | // If it's caused by a software bug, fix it. If it's a hardware bug, fix it. |
592 | 597 | LOG_ERROR(LOG_TAG, "%s hci layer timeout waiting for response to a command. opcode: 0x%x", __func__, wait_entry->opcode); |