hci: set substate when setting EIR data

This commit is contained in:
Matthias Ringwald 2016-09-30 11:40:33 +02:00
parent 186bfbec4d
commit 8a1144706a

View File

@ -1083,11 +1083,12 @@ static void hci_initializing_run(void){
}
break;
case HCI_INIT_WRITE_EIR_DATA:
hci_stack->substate = HCI_INIT_W4_WRITE_EIR_DATA;
hci_send_cmd(&hci_write_extended_inquiry_response, 0, hci_stack->eir_data);
break;
case HCI_INIT_WRITE_INQUIRY_MODE:
hci_send_cmd(&hci_write_inquiry_mode, (int) hci_stack->inquiry_mode);
hci_stack->substate = HCI_INIT_W4_WRITE_INQUIRY_MODE;
hci_send_cmd(&hci_write_inquiry_mode, (int) hci_stack->inquiry_mode);
break;
case HCI_INIT_WRITE_SCAN_ENABLE:
hci_send_cmd(&hci_write_scan_enable, (hci_stack->connectable << 1) | hci_stack->discoverable); // page scan