Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e45e5894 authored by Nitin Arora's avatar Nitin Arora Committed by Andre Eisenbach
Browse files

Recitfy condition when removing device from IRK resolving list

This patch corrects the conditional logic before sending HCI
command to remove the IRK list entry from the IRK resolving
list based on the max size of resolving list

Change-Id: I9adc933f0988ae907b3e218ba63814d106784787
parent 9e031859
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -445,7 +445,7 @@ void btm_ble_resolving_list_vsc_op_cmpl (tBTM_VSC_CMPL *p_params)
tBTM_STATUS btm_ble_remove_resolving_list_entry(tBTM_SEC_DEV_REC *p_dev_rec)
tBTM_STATUS btm_ble_remove_resolving_list_entry(tBTM_SEC_DEV_REC *p_dev_rec)
{
{
    /* if controller does not support RPA offloading or privacy 1.2, skip */
    /* if controller does not support RPA offloading or privacy 1.2, skip */
    if (controller_get_interface()->get_ble_resolving_list_max_size())
    if (controller_get_interface()->get_ble_resolving_list_max_size() == 0)
        return BTM_WRONG_MODE;
        return BTM_WRONG_MODE;


    tBTM_STATUS st = BTM_NO_RESOURCES;
    tBTM_STATUS st = BTM_NO_RESOURCES;