fix(ble/bluedroid): Delete BLE_HOST_SETUP_STORAGE_EN
(cherry picked from commit 08740df98867cac0af5e00a7ea3eef8f7f1bbe34) Co-authored-by: zhiweijian <zhiweijian@espressif.com>
This commit is contained in:
@@ -6125,79 +6125,6 @@ void bta_dm_api_cs_procedure_enable(tBTA_DM_MSG *p_data)
|
||||
}
|
||||
#endif // (BT_BLE_FEAT_CHANNEL_SOUNDING == TRUE)
|
||||
|
||||
#if (BLE_HOST_SETUP_STORAGE_EN == TRUE)
|
||||
/*******************************************************************************
|
||||
**
|
||||
** Function bta_dm_ble_setup_storage
|
||||
**
|
||||
** Description This function configures up the storage parameters for ADV batch scanning
|
||||
**
|
||||
** Parameters:
|
||||
**
|
||||
*******************************************************************************/
|
||||
void bta_dm_ble_setup_storage (tBTA_DM_MSG *p_data)
|
||||
{
|
||||
tBTM_STATUS btm_status = 0;
|
||||
tBTM_BLE_VSC_CB cmn_ble_vsc_cb;
|
||||
|
||||
BTM_BleGetVendorCapabilities(&cmn_ble_vsc_cb);
|
||||
|
||||
if (0 != cmn_ble_vsc_cb.tot_scan_results_strg) {
|
||||
btm_status = BTM_BleSetStorageConfig(p_data->ble_set_storage.batch_scan_full_max,
|
||||
p_data->ble_set_storage.batch_scan_trunc_max,
|
||||
p_data->ble_set_storage.batch_scan_notify_threshold,
|
||||
p_data->ble_set_storage.p_setup_cback,
|
||||
p_data->ble_set_storage.p_thres_cback,
|
||||
p_data->ble_set_storage.p_read_rep_cback,
|
||||
p_data->ble_set_storage.ref_value);
|
||||
}
|
||||
|
||||
if (BTM_CMD_STARTED != btm_status) {
|
||||
bta_ble_scan_setup_cb(BTM_BLE_BATCH_SCAN_CFG_STRG_EVT, p_data->ble_set_storage.ref_value,
|
||||
btm_status);
|
||||
}
|
||||
}
|
||||
#endif // #if (BLE_HOST_SETUP_STORAGE_EN == TRUE)
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
** Function bta_ble_scan_setup_cb
|
||||
**
|
||||
** Description Handle the setup callback from BTM layer and forward it to app layer
|
||||
**
|
||||
** Parameters:
|
||||
**
|
||||
*******************************************************************************/
|
||||
void bta_ble_scan_setup_cb(tBTM_BLE_BATCH_SCAN_EVT evt, tBTM_BLE_REF_VALUE ref_value,
|
||||
tBTM_STATUS status)
|
||||
{
|
||||
tBTA_BLE_BATCH_SCAN_EVT bta_evt = 0;
|
||||
|
||||
APPL_TRACE_DEBUG("bta_ble_scan_setup_cb : evt: %d, ref_value: %d, status:%d", evt,
|
||||
ref_value, status);
|
||||
|
||||
switch (evt) {
|
||||
case BTM_BLE_BATCH_SCAN_ENABLE_EVT:
|
||||
bta_evt = BTA_BLE_BATCH_SCAN_ENB_EVT;
|
||||
break;
|
||||
case BTM_BLE_BATCH_SCAN_CFG_STRG_EVT:
|
||||
bta_evt = BTA_BLE_BATCH_SCAN_CFG_STRG_EVT;
|
||||
break;
|
||||
case BTM_BLE_BATCH_SCAN_DISABLE_EVT:
|
||||
bta_evt = BTA_BLE_BATCH_SCAN_DIS_EVT;
|
||||
break;
|
||||
case BTM_BLE_BATCH_SCAN_PARAM_EVT:
|
||||
bta_evt = BTA_BLE_BATCH_SCAN_PARAM_EVT;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (NULL != bta_dm_cb.p_setup_cback) {
|
||||
bta_dm_cb.p_setup_cback(bta_evt, ref_value, status);
|
||||
}
|
||||
}
|
||||
|
||||
#if ((defined BTA_GATT_INCLUDED) && (BTA_GATT_INCLUDED == TRUE) && SDP_INCLUDED == TRUE)
|
||||
#ifndef BTA_DM_GATT_CLOSE_DELAY_TOUT
|
||||
#define BTA_DM_GATT_CLOSE_DELAY_TOUT 1000
|
||||
|
||||
Reference in New Issue
Block a user