hci: ignore gap classic tasks if classic is not supported

This commit is contained in:
Matthias Ringwald 2022-01-04 19:44:33 +01:00
parent 9a00f11b52
commit 2f3b3aff2f

View File

@ -1817,7 +1817,7 @@ static void hci_initializing_run(void){
hci_stack->substate = HCI_INIT_DONE;
#ifdef ENABLE_CLASSIC
// init sequence complete, check if GAP Tasks are completed
if (hci_stack->gap_tasks != 0) {
if (hci_classic_supported() && (hci_stack->gap_tasks != 0)) {
hci_run_gap_tasks_classic();
break;
}