hci: fix build

This commit is contained in:
Matthias Ringwald 2019-09-02 21:48:10 +02:00
parent 891b9fc269
commit 3e5e09262b

View File

@ -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