From 3e5e09262bb343951d7cc4fa646b9a853a1ac22b Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 2 Sep 2019 21:48:10 +0200 Subject: [PATCH] hci: fix build --- src/hci.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/hci.c b/src/hci.c index 9d4e32089..ad27a6801 100644 --- a/src/hci.c +++ b/src/hci.c @@ -305,6 +305,9 @@ hci_connection_t * hci_connection_for_bd_addr_and_type(bd_addr_t addr, bd_addr_ return NULL; } +inline static void connectionClearAuthenticationFlags(hci_connection_t * conn, hci_authentication_flags_t flags){ + conn->authentication_flags = (hci_authentication_flags_t)(conn->authentication_flags & ~flags); +} #ifdef ENABLE_CLASSIC @@ -349,11 +352,6 @@ inline static void connectionSetAuthenticationFlags(hci_connection_t * conn, hci conn->authentication_flags = (hci_authentication_flags_t)(conn->authentication_flags | flags); } - -inline static void connectionClearAuthenticationFlags(hci_connection_t * conn, hci_authentication_flags_t flags){ - conn->authentication_flags = (hci_authentication_flags_t)(conn->authentication_flags & ~flags); -} - /** * add authentication flags and reset timer * @note: assumes classic connection