@@ -231,6 +231,7 @@ void BTA_DmCfgCoexStatus(UINT8 op, UINT8 type, UINT8 status)
231231}
232232#endif
233233
234+ #if (BLE_VENDOR_HCI_EN == TRUE )
234235void BTA_DmsendVendorHciCmd (UINT16 opcode , UINT8 param_len , UINT8 * p_param_buf , tBTA_SEND_VENDOR_HCI_CMPL_CBACK p_vendor_cmd_complete_cback )
235236{
236237 tBTA_DM_API_SEND_VENDOR_HCI_CMD * p_msg ;
@@ -246,6 +247,57 @@ void BTA_DmsendVendorHciCmd(UINT16 opcode, UINT8 param_len, UINT8 *p_param_buf,
246247 }
247248}
248249
250+ /*******************************************************************************
251+ **
252+ ** Function BTA_DmBleClearAdv
253+ **
254+ ** Description This function is called to clear Advertising
255+ **
256+ ** Parameters p_adv_data_cback : clear adv complete callback.
257+ **
258+ ** Returns None
259+ **
260+ *******************************************************************************/
261+ void BTA_DmBleClearAdv (tBTA_CLEAR_ADV_CMPL_CBACK * p_clear_adv_cback )
262+ {
263+ tBTA_DM_API_CLEAR_ADV * p_msg ;
264+
265+ if ((p_msg = (tBTA_DM_API_CLEAR_ADV * )
266+ osi_malloc (sizeof (tBTA_DM_API_CLEAR_ADV ))) != NULL ) {
267+ p_msg -> hdr .event = BTA_DM_API_BLE_CLEAR_ADV_EVT ;
268+ p_msg -> p_clear_adv_cback = p_clear_adv_cback ;
269+
270+ bta_sys_sendmsg (p_msg );
271+ }
272+ }
273+
274+ void BTA_DmBleGapSetCsaSupport (uint8_t csa_select , tBTA_SET_CSA_SUPPORT_CMPL_CBACK * p_callback )
275+ {
276+ tBTA_DM_API_BLE_SET_CSA_SUPPORT * p_msg ;
277+
278+ if ((p_msg = (tBTA_DM_API_BLE_SET_CSA_SUPPORT * )osi_malloc (sizeof (tBTA_DM_API_BLE_SET_CSA_SUPPORT )))
279+ != NULL ) {
280+ p_msg -> hdr .event = BTA_DM_API_BLE_SET_CSA_SUPPORT_EVT ;
281+ p_msg -> csa_select = csa_select ;
282+ p_msg -> p_cback = p_callback ;
283+ bta_sys_sendmsg (p_msg );
284+ }
285+ }
286+
287+ void BTA_DmBleGapSetVendorEventMask (uint32_t evt_mask , tBTA_SET_VENDOR_EVT_MASK_CBACK * p_callback )
288+ {
289+ tBTA_DM_API_BLE_SET_VENDOR_EVT_MASK * p_msg ;
290+
291+ if ((p_msg = (tBTA_DM_API_BLE_SET_VENDOR_EVT_MASK * )osi_malloc (sizeof (tBTA_DM_API_BLE_SET_VENDOR_EVT_MASK )))
292+ != NULL ) {
293+ p_msg -> hdr .event = BTA_DM_API_BLE_SET_VENDOR_EVT_MASK_EVT ;
294+ p_msg -> evt_mask = evt_mask ;
295+ p_msg -> p_cback = p_callback ;
296+ bta_sys_sendmsg (p_msg );
297+ }
298+ }
299+ #endif // #if (BLE_VENDOR_HCI_EN == TRUE)
300+
249301#if (CLASSIC_BT_INCLUDED == TRUE )
250302
251303void BTA_DmConfigEir (tBTA_DM_EIR_CONF * eir_config )
@@ -1896,30 +1948,6 @@ extern void BTA_DmBleBroadcast (BOOLEAN start, tBTA_START_STOP_ADV_CMPL_CBACK *p
18961948 bta_sys_sendmsg (p_msg );
18971949 }
18981950}
1899-
1900- /*******************************************************************************
1901- **
1902- ** Function BTA_DmBleClearAdv
1903- **
1904- ** Description This function is called to clear Advertising
1905- **
1906- ** Parameters p_adv_data_cback : clear adv complete callback.
1907- **
1908- ** Returns None
1909- **
1910- *******************************************************************************/
1911- void BTA_DmBleClearAdv (tBTA_CLEAR_ADV_CMPL_CBACK * p_clear_adv_cback )
1912- {
1913- tBTA_DM_API_CLEAR_ADV * p_msg ;
1914-
1915- if ((p_msg = (tBTA_DM_API_CLEAR_ADV * )
1916- osi_malloc (sizeof (tBTA_DM_API_CLEAR_ADV ))) != NULL ) {
1917- p_msg -> hdr .event = BTA_DM_API_BLE_CLEAR_ADV_EVT ;
1918- p_msg -> p_clear_adv_cback = p_clear_adv_cback ;
1919-
1920- bta_sys_sendmsg (p_msg );
1921- }
1922- }
19231951#endif // #if (BLE_42_ADV_EN == TRUE)
19241952
19251953#endif
@@ -3014,32 +3042,6 @@ void BTA_DmClearRandAddress(void)
30143042 }
30153043}
30163044
3017- void BTA_DmBleGapSetCsaSupport (uint8_t csa_select , tBTA_SET_CSA_SUPPORT_CMPL_CBACK * p_callback )
3018- {
3019- tBTA_DM_API_BLE_SET_CSA_SUPPORT * p_msg ;
3020-
3021- if ((p_msg = (tBTA_DM_API_BLE_SET_CSA_SUPPORT * )osi_malloc (sizeof (tBTA_DM_API_BLE_SET_CSA_SUPPORT )))
3022- != NULL ) {
3023- p_msg -> hdr .event = BTA_DM_API_BLE_SET_CSA_SUPPORT_EVT ;
3024- p_msg -> csa_select = csa_select ;
3025- p_msg -> p_cback = p_callback ;
3026- bta_sys_sendmsg (p_msg );
3027- }
3028- }
3029-
3030- void BTA_DmBleGapSetVendorEventMask (uint32_t evt_mask , tBTA_SET_VENDOR_EVT_MASK_CBACK * p_callback )
3031- {
3032- tBTA_DM_API_BLE_SET_VENDOR_EVT_MASK * p_msg ;
3033-
3034- if ((p_msg = (tBTA_DM_API_BLE_SET_VENDOR_EVT_MASK * )osi_malloc (sizeof (tBTA_DM_API_BLE_SET_VENDOR_EVT_MASK )))
3035- != NULL ) {
3036- p_msg -> hdr .event = BTA_DM_API_BLE_SET_VENDOR_EVT_MASK_EVT ;
3037- p_msg -> evt_mask = evt_mask ;
3038- p_msg -> p_cback = p_callback ;
3039- bta_sys_sendmsg (p_msg );
3040- }
3041- }
3042-
30433045#if (BLE_FEAT_POWER_CONTROL_EN == TRUE )
30443046void BTA_DmBleGapEnhReadTransPwrLevel (uint16_t conn_handle , uint8_t phy )
30453047{
0 commit comments