hci: remove init command complete handler for (HCI_INIT_DONE-1)

This commit is contained in:
Matthias Ringwald 2021-10-01 16:24:54 +02:00
parent 4f982f3129
commit eb8d95caa2

View File

@ -2083,14 +2083,9 @@ static void hci_initializing_event_handler(const uint8_t * packet, uint16_t size
return;
#endif /* ENABLE_SCO_OVER_HCI */
// avoid compile error due to duplicate cases: HCI_INIT_W4_BCM_WRITE_SCO_PCM_INT == HCI_INIT_DONE-1
#if defined(ENABLE_BLE) || defined(ENABLE_LE_DATA_LENGTH_EXTENSION) || defined(ENABLE_LE_CENTRAL)
// Response to command before init done state -> init done
case (HCI_INIT_DONE-1):
hci_stack->substate = HCI_INIT_DONE;
return;
#endif
case HCI_INIT_DONE:
// set state if we came here by fall through
hci_stack->substate = HCI_INIT_DONE;
return;
default: