mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-31 14:20:07 +00:00
nimble/gap: Fix for resolving list peer removal
This commit aims to fix an issue where deleting peer from resolving list would fail due to lack of IRK on the list.
This commit is contained in:
committed by
Szymon Janc
parent
1342693244
commit
620064e69d
@@ -6202,7 +6202,12 @@ ble_gap_unpair(const ble_addr_t *peer_addr)
|
||||
|
||||
rc = ble_hs_pvcy_remove_entry(peer_addr->type,
|
||||
peer_addr->val);
|
||||
if (rc != 0) {
|
||||
|
||||
/* We allow BLE_ERR_UNK_CONN_ID as the IRK of the peer might not be
|
||||
* present on the resolving list, but we still should be able to
|
||||
* remove that entry.
|
||||
*/
|
||||
if (rc != 0 && rc != (BLE_HS_ERR_HCI_BASE + BLE_ERR_UNK_CONN_ID)) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user