sm: fix compile without le privacy address resolution enabled

This commit is contained in:
Matthias Ringwald 2020-09-11 15:50:55 +02:00
parent ced5a857a4
commit 1de8bf6a9e

View File

@ -1305,7 +1305,9 @@ static void sm_key_distribution_handle_all_received(sm_connection_t * sm_conn){
// if not found, add to db
if (le_db_index < 0) {
le_db_index = le_device_db_add(setup->sm_peer_addr_type, setup->sm_peer_address, setup->sm_peer_irk);
hci_load_le_device_db_entry_into_resolving_list(le_db_index);
#ifdef ENABLE_LE_PRIVACY_ADDRESS_RESOLUTION
hci_load_le_device_db_entry_into_resolving_list(le_db_index);
#endif
}
if (le_db_index >= 0){