• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/bt


Commit MetaInfo

Révision36ab0e7014176ce8ed4e7766614d511666701888 (tree)
l'heure2016-11-15 10:16:30
AuteurJaap Jan Meijer <jjmeijer88@gmai...>
CommiterJaap Jan Meijer

Message de Log

[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

Change Summary

Modification

--- a/hci/src/hci_layer.c
+++ b/hci/src/hci_layer.c
@@ -587,6 +587,11 @@ static void command_timed_out(UNUSED_ATTR void *context) {
587587 waiting_command_t *wait_entry = list_front(commands_pending_response);
588588 pthread_mutex_unlock(&commands_pending_response_lock);
589589
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+
590595 // We shouldn't try to recover the stack from this command timeout.
591596 // If it's caused by a software bug, fix it. If it's a hardware bug, fix it.
592597 LOG_ERROR(LOG_TAG, "%s hci layer timeout waiting for response to a command. opcode: 0x%x", __func__, wait_entry->opcode);