From 2f3b3aff2f36be1210714c0c430a645d3d41169d Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 4 Jan 2022 19:44:33 +0100 Subject: [PATCH] hci: ignore gap classic tasks if classic is not supported --- src/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index e6a91e381..d2daf2f6e 100644 --- a/src/hci.c +++ b/src/hci.c @@ -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; }