|
|
@@ -982,10 +982,6 @@ static void bta_dm_process_remove_device(BD_ADDR bd_addr, tBT_TRANSPORT transpor
|
|
|
|
|
|
BTM_SecDeleteDevice(bd_addr, transport);
|
|
|
|
|
|
-#if (BLE_INCLUDED == TRUE && GATTC_INCLUDED == TRUE)
|
|
|
- /* remove all cached GATT information */
|
|
|
- BTA_GATTC_Refresh(bd_addr, false);
|
|
|
-#endif
|
|
|
if (bta_dm_cb.p_sec_cback) {
|
|
|
tBTA_DM_SEC sec_event;
|
|
|
bdcpy(sec_event.link_down.bd_addr, bd_addr);
|
|
|
@@ -1140,8 +1136,6 @@ void bta_dm_close_acl(tBTA_DM_MSG *p_data)
|
|
|
#if (BLE_INCLUDED == TRUE && GATTC_INCLUDED == TRUE)
|
|
|
/* need to remove all pending background connection if any */
|
|
|
BTA_GATTC_CancelOpen(0, p_remove_acl->bd_addr, FALSE);
|
|
|
- /* remove all cached GATT information */
|
|
|
- BTA_GATTC_Refresh(p_remove_acl->bd_addr, false);
|
|
|
#endif
|
|
|
}
|
|
|
/* otherwise, no action needed */
|
|
|
@@ -3670,8 +3664,6 @@ void bta_dm_acl_change(tBTA_DM_MSG *p_data)
|
|
|
#if (BLE_INCLUDED == TRUE && GATTC_INCLUDED == TRUE)
|
|
|
/* need to remove all pending background connection */
|
|
|
BTA_GATTC_CancelOpen(0, p_bda, FALSE);
|
|
|
- /* remove all cached GATT information */
|
|
|
- BTA_GATTC_Refresh(p_bda, false);
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
@@ -3849,8 +3841,6 @@ static BOOLEAN bta_dm_remove_sec_dev_entry(BD_ADDR remote_bd_addr)
|
|
|
#if (BLE_INCLUDED == TRUE && GATTC_INCLUDED == TRUE)
|
|
|
/* need to remove all pending background connection */
|
|
|
BTA_GATTC_CancelOpen(0, remote_bd_addr, FALSE);
|
|
|
- /* remove all cached GATT information */
|
|
|
- BTA_GATTC_Refresh(remote_bd_addr, false);
|
|
|
#endif
|
|
|
}
|
|
|
return is_device_deleted;
|