From d5f71a7e3a90187da1578e020d47c943fe2c4745 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 10 Feb 2022 15:47:49 +0100 Subject: [PATCH] hci: fix warnings --- src/hci.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/hci.c b/src/hci.c index a92519d4b..2760dbd9c 100644 --- a/src/hci.c +++ b/src/hci.c @@ -386,6 +386,8 @@ hci_connection_t * hci_connection_for_bd_addr_and_type(const bd_addr_t addr, bd return NULL; } +#ifdef ENABLE_CLASSIC + inline static void connectionClearAuthenticationFlags(hci_connection_t * conn, hci_authentication_flags_t flags){ conn->authentication_flags = (hci_authentication_flags_t)(conn->authentication_flags & ~flags); } @@ -394,8 +396,6 @@ inline static void connectionSetAuthenticationFlags(hci_connection_t * conn, hci conn->authentication_flags = (hci_authentication_flags_t)(conn->authentication_flags | flags); } -#ifdef ENABLE_CLASSIC - #ifdef ENABLE_SCO_OVER_HCI static int hci_number_sco_connections(void){ int connections = 0; @@ -4322,7 +4322,11 @@ static void hci_halting_run(void) { log_info("HCI_STATE_HALTING, substate %x\n", hci_stack->substate); hci_connection_t *connection; +#ifdef ENABLE_BLE +#ifdef ENABLE_LE_PERIPHERAL bool stop_advertismenets; +#endif +#endif switch (hci_stack->substate) { case HCI_HALTING_CLASSIC_STOP: