From e0dbca836d24c7b5fd8ef62976cf5e397ef40224 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Fri, 30 Aug 2013 20:55:33 +0000 Subject: [PATCH] set event mask to 0xffffffff on start --- src/hci.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/hci.c b/src/hci.c index 773b53e19..fc5b2655b 100644 --- a/src/hci.c +++ b/src/hci.c @@ -62,7 +62,7 @@ #define HCI_CONNECTION_TIMEOUT_MS 10000 -#define HCI_INTIALIZING_SUBSTATE_AFTER_SLEEP 9 +#define HCI_INTIALIZING_SUBSTATE_AFTER_SLEEP 10 #ifdef USE_BLUETOOL #include "bt_control_iphone.h" @@ -1155,9 +1155,12 @@ void hci_run(){ } break; case 9: + hci_send_cmd(&hci_set_event_mask,0xffffffff, 0xFFFFFFFF); ///0x1DFFFFFF + break; + case 10: hci_send_cmd(&hci_write_scan_enable, (hci_stack.connectable << 1) | hci_stack.discoverable); // page scan break; - case 10: + case 11: // done. hci_stack.state = HCI_STATE_WORKING; hci_emit_state();