From 9202d845369f0c5de5720de00c663adb94807bc6 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 13 Oct 2022 11:15:25 +0200 Subject: [PATCH] sm: remove resolving list entry when deleting bonding information due to IRK update --- src/ble/sm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ble/sm.c b/src/ble/sm.c index c830a86cc..ec633653c 100644 --- a/src/ble/sm.c +++ b/src/ble/sm.c @@ -1567,7 +1567,7 @@ static uint8_t sm_key_distribution_validate_received(sm_connection_t * sm_conn){ if (memcmp(irk, setup->sm_peer_irk, 16) != 0){ // IRK doesn't match, delete bonding information log_info("New IRK for %s (type %u) does not match stored IRK -> delete bonding information", bd_addr_to_str(sm_conn->sm_peer_address), sm_conn->sm_peer_addr_type); - le_device_db_remove(index); + sm_remove_le_device_db_entry(index); } } }