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

Commit 889c8823 authored by Hemant Gupta's avatar Hemant Gupta
Browse files

GAP: Remove device info from storage on Pairing Cancel

Remove paired device information for SSP devices from the BT-IF
layer storage on pairing cancel.

Change-Id: I4660e3659866bd66339350b5cdb92bf3ad3cc850
parent 47a2b592
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -1980,7 +1980,11 @@ bt_status_t btif_dm_cancel_bond(const bt_bdaddr_t *bd_addr)
                BTA_DmBleSecurityGrant((UINT8 *)bd_addr->address,BTA_DM_SEC_PAIR_NOT_SPT);
                BTA_DmBleSecurityGrant((UINT8 *)bd_addr->address,BTA_DM_SEC_PAIR_NOT_SPT);
            }
            }
            else
            else
            {
                BTA_DmConfirm( (UINT8 *)bd_addr->address, FALSE);
                BTA_DmConfirm( (UINT8 *)bd_addr->address, FALSE);
                BTA_DmBondCancel ((UINT8 *)bd_addr->address);
                btif_storage_remove_bonded_device((bt_bdaddr_t *)bd_addr);
            }
        }
        }
        else
        else
        {
        {