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
diff --git a/btif/src/btif_dm.c b/btif/src/btif_dm.c
index fd561f4..6b0daa8 100644
--- a/btif/src/btif_dm.c
+++ b/btif/src/btif_dm.c
@@ -1980,7 +1980,11 @@
BTA_DmBleSecurityGrant((UINT8 *)bd_addr->address,BTA_DM_SEC_PAIR_NOT_SPT);
}
else
+ {
BTA_DmConfirm( (UINT8 *)bd_addr->address, FALSE);
+ BTA_DmBondCancel ((UINT8 *)bd_addr->address);
+ btif_storage_remove_bonded_device((bt_bdaddr_t *)bd_addr);
+ }
}
else
{