mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-11 04:27:58 +00:00
fix(nimble) : Handled error return value while handling of removing RPA list from controller.
This commit is contained in:
committed by
Rahul Tank
parent
e5358f1059
commit
69c9eb8473
@@ -6452,6 +6452,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()) {
|
||||
@@ -6471,8 +6472,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
|
||||
|
||||
Reference in New Issue
Block a user