bta_dm_disable_search_and_disc();
bta_dm_cb.disabling = TRUE;
+#if BLE_INCLUDED == TRUE && BTA_GATT_INCLUDED == TRUE
+ BTM_BleClearBgConnDev();
+#endif
if(BTM_GetNumAclLinks()==0)
{
{
BTM_TRACE_EVENT ("btm_ble_clear_white_list");
btsnd_hcic_ble_clear_white_list();
+ memset(&btm_cb.ble_ctr_cb.bg_dev_list, 0, (sizeof(tBTM_LE_BG_CONN_DEV)*BTM_BLE_MAX_BG_CONN_DEV_NUM));
}
/*******************************************************************************
#include "vendor_ble.h"
#endif
#include "gattdefs.h"
+#include "gatt_int.h"
#include "btm_ble_int.h"
/*******************************************************************************
**
+** Function BTM_BleClearBgConnDev
+**
+** Description This function is called to clear the whitelist,
+** end any pending whitelist connections,
+* and reset the local bg device list.
+**
+** Parameters void
+**
+** Returns void
+**
+*******************************************************************************/
+void BTM_BleClearBgConnDev(void)
+{
+ btm_ble_start_auto_conn(FALSE);
+ btm_ble_clear_white_list();
+ gatt_reset_bgdev_list();
+}
+
+/*******************************************************************************
+**
** Function BTM_BleUpdateBgConnDev
**
** Description This function is called to add or remove a device into/from
*******************************************************************************/
BTM_API extern BOOLEAN BTM_BleUpdateBgConnDev(BOOLEAN add_remove, BD_ADDR remote_bda);
+/*******************************************************************************
+**
+** Function BTM_BleClearBgConnDev
+**
+** Description This function is called to clear the whitelist,
+** end any pending whitelist connections,
+* and reset the local bg device list.
+**
+** Parameters void
+**
+** Returns void
+**
+*******************************************************************************/
+BTM_API extern void BTM_BleClearBgConnDev(void);
/********************************************************
**