hci: skip SCO over HCI commands if not defined

This commit is contained in:
Matthias Ringwald 2017-02-23 14:50:59 +01:00
parent f971afab88
commit f3b012f9c7

View File

@ -1507,15 +1507,21 @@ static void hci_initializing_event_handler(uint8_t * packet, uint16_t size){
return; return;
} }
break; break;
#else
#else /* !ENABLE_SCO_OVER_HCI */
case HCI_INIT_W4_WRITE_SCAN_ENABLE: case HCI_INIT_W4_WRITE_SCAN_ENABLE:
if (!hci_le_supported()){ #ifdef ENABLE_BLE
// SKIP LE init for Classic only configuration if (hci_le_supported()){
hci_init_done(); hci_stack->substate = HCI_INIT_LE_READ_BUFFER_SIZE;
return; return;
} }
#endif #endif
break; // SKIP LE init for Classic only configuration
hci_init_done();
return;
#endif /* ENABLE_SCO_OVER_HCI */
// Response to command before init done state -> init done // Response to command before init done state -> init done
case (HCI_INIT_DONE-1): case (HCI_INIT_DONE-1):
hci_init_done(); hci_init_done();