Skip to content

Commit

Permalink
fix(nimble): Handled error return value while removing RPA list from …
Browse files Browse the repository at this point in the history
…controller.
  • Loading branch information
ESPAbhinav committed Sep 4, 2023
1 parent b5e107e commit 2fb228f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nimble/host/src/ble_gap.c
Original file line number Diff line number Diff line change
Expand Up @@ -6041,6 +6041,7 @@ int
ble_gap_unpair(const ble_addr_t *peer_addr)
{
#if NIMBLE_BLE_SM
int rc;
struct ble_hs_conn *conn;

if (!ble_hs_is_enabled()) {
Expand All @@ -6060,8 +6061,11 @@ ble_gap_unpair(const ble_addr_t *peer_addr)

ble_hs_unlock();

ble_hs_pvcy_remove_entry(peer_addr->type,
rc = ble_hs_pvcy_remove_entry(peer_addr->type,
peer_addr->val);
if (rc != 0) {
return rc;
}

return ble_store_util_delete_peer(peer_addr);
#else
Expand Down

0 comments on commit 2fb228f

Please sign in to comment.