diff --git a/nimble/host/src/ble_hs_pvcy.c b/nimble/host/src/ble_hs_pvcy.c index 32f15974..f5260bb6 100644 --- a/nimble/host/src/ble_hs_pvcy.c +++ b/nimble/host/src/ble_hs_pvcy.c @@ -132,6 +132,10 @@ ble_hs_pvcy_add_entry_hci(const uint8_t *addr, uint8_t addr_type, memcpy(add.local_irk, ble_hs_pvcy_irk, 16); memcpy(add.peer_irk, irk, 16); + BLE_HS_LOG(DEBUG, "\n Add IRK to resolve list:"); + ble_hs_log_flat_buf(irk, 16); + BLE_HS_LOG(DEBUG, "\n"); + rc = ble_hs_hci_cmd_build_add_to_resolv_list(&add, buf, sizeof(buf)); if (rc != 0) { return rc; diff --git a/nimble/host/src/ble_hs_resolv.c b/nimble/host/src/ble_hs_resolv.c index 7f241389..c74b55cc 100644 --- a/nimble/host/src/ble_hs_resolv.c +++ b/nimble/host/src/ble_hs_resolv.c @@ -462,6 +462,9 @@ ble_hs_is_on_resolv_list(uint8_t *addr, uint8_t addr_type) for (i = 1; i < g_ble_hs_resolv_data.rl_cnt; ++i) { if ((rl->rl_addr_type == addr_type) && (!memcmp(rl->rl_identity_addr, addr, BLE_DEV_ADDR_LEN))) { + BLE_HS_LOG(DEBUG, "IRK present already in RL::"); + ble_hs_log_flat_buf(rl->rl_peer_irk, 16); + BLE_HS_LOG(DEBUG, "\n"); return i; } ++rl;