diff --git a/src/hci.c b/src/hci.c index bb600b1f2..f8cc6d41d 100644 --- a/src/hci.c +++ b/src/hci.c @@ -604,7 +604,7 @@ void gap_link_key_iterator_done(btstack_link_key_iterator_t * it){ } #endif -static bool hci_is_le_connection_type(bd_addr_type_t address_type){ +bool hci_is_le_connection_type(bd_addr_type_t address_type){ switch (address_type){ case BD_ADDR_TYPE_LE_PUBLIC: case BD_ADDR_TYPE_LE_RANDOM: diff --git a/src/hci.h b/src/hci.h index bc5a487d5..5ea684000 100644 --- a/src/hci.h +++ b/src/hci.h @@ -1562,6 +1562,12 @@ bool hci_classic_supported(void); */ bool hci_le_supported(void); +/** @brief Check if address type corresponds to LE connection + * @bparam address_type + * @erturn true if LE connection + */ +bool hci_is_le_connection_type(bd_addr_type_t address_type); + /* API_END */