Lines Matching refs:p_data

65 static void bta_dm_bl_change_cback (tBTM_BL_EVENT_DATA *p_data);
70 static UINT8 bta_dm_sp_cback (tBTM_SP_EVT event, tBTM_SP_EVT_DATA *p_data);
93 static UINT8 bta_dm_ble_smp_cback (tBTM_LE_EVT event, BD_ADDR bda, tBTM_LE_EVT_DATA *p_data);
100 static void bta_dm_gattc_callback(tBTA_GATTC_EVT event, tBTA_GATTC *p_data);
260 void bta_dm_enable(tBTA_DM_MSG *p_data) in bta_dm_enable() argument
270 if (p_data->enable.p_sec_cback != NULL) in bta_dm_enable()
271 p_data->enable.p_sec_cback(BTA_DM_ENABLE_EVT, (tBTA_DM_SEC *)&enable_event); in bta_dm_enable()
280 if( p_data->enable.p_sec_cback != NULL ) in bta_dm_enable()
281 bta_dm_cb.p_sec_cback = p_data->enable.p_sec_cback; in bta_dm_enable()
466 void bta_dm_disable (tBTA_DM_MSG *p_data) in bta_dm_disable() argument
468 UNUSED(p_data); in bta_dm_disable()
575 void bta_dm_set_dev_name (tBTA_DM_MSG *p_data) in bta_dm_set_dev_name() argument
578 BTM_SetLocalDeviceName((char*)p_data->set_name.name); in bta_dm_set_dev_name()
579 bta_dm_set_eir ((char*)p_data->set_name.name); in bta_dm_set_dev_name()
592 void bta_dm_set_visibility(tBTA_DM_MSG *p_data) in bta_dm_set_visibility() argument
603 if (p_data->set_visibility.disc_mode != (BTA_DM_IGNORE | BTA_DM_LE_IGNORE)) in bta_dm_set_visibility()
606 if ((p_data->set_visibility.disc_mode & BTA_DM_LE_IGNORE) == BTA_DM_LE_IGNORE) in bta_dm_set_visibility()
607 p_data->set_visibility.disc_mode = in bta_dm_set_visibility()
608 ((p_data->set_visibility.disc_mode & ~BTA_DM_LE_IGNORE) | le_disc_mode); in bta_dm_set_visibility()
610 if ((p_data->set_visibility.disc_mode & BTA_DM_IGNORE) == BTA_DM_IGNORE) in bta_dm_set_visibility()
611 p_data->set_visibility.disc_mode = in bta_dm_set_visibility()
612 ((p_data->set_visibility.disc_mode & ~BTA_DM_IGNORE) | disc_mode); in bta_dm_set_visibility()
614 BTM_SetDiscoverability(p_data->set_visibility.disc_mode, in bta_dm_set_visibility()
619 if (p_data->set_visibility.conn_mode != (BTA_DM_IGNORE | BTA_DM_LE_IGNORE)) in bta_dm_set_visibility()
622 if ((p_data->set_visibility.conn_mode & BTA_DM_LE_IGNORE) == BTA_DM_LE_IGNORE) in bta_dm_set_visibility()
623 p_data->set_visibility.conn_mode = in bta_dm_set_visibility()
624 ((p_data->set_visibility.conn_mode & ~BTA_DM_LE_IGNORE) | le_conn_mode); in bta_dm_set_visibility()
626 if ((p_data->set_visibility.conn_mode & BTA_DM_IGNORE) == BTA_DM_IGNORE) in bta_dm_set_visibility()
627 p_data->set_visibility.conn_mode = in bta_dm_set_visibility()
628 ((p_data->set_visibility.conn_mode & ~BTA_DM_IGNORE) | conn_mode); in bta_dm_set_visibility()
630 BTM_SetConnectability(p_data->set_visibility.conn_mode, in bta_dm_set_visibility()
636 if (p_data->set_visibility.pair_mode != BTA_DM_IGNORE ) in bta_dm_set_visibility()
639 if (p_data->set_visibility.pair_mode == BTA_DM_NON_PAIRABLE) in bta_dm_set_visibility()
647 if (p_data->set_visibility.conn_paired_only != BTA_DM_IGNORE) in bta_dm_set_visibility()
650 if (p_data->set_visibility.conn_paired_only == BTA_DM_CONN_ALL) in bta_dm_set_visibility()
658 …if (p_data->set_visibility.pair_mode != BTA_DM_IGNORE || p_data->set_visibility.conn_paired_only !… in bta_dm_set_visibility()
701 void bta_dm_remove_device(tBTA_DM_MSG *p_data) in bta_dm_remove_device() argument
703 tBTA_DM_API_REMOVE_DEVICE *p_dev = &p_data->remove_dev; in bta_dm_remove_device()
796 void bta_dm_add_device (tBTA_DM_MSG *p_data) in bta_dm_add_device() argument
798 tBTA_DM_API_ADD_DEVICE *p_dev = &p_data->add_dev; in bta_dm_add_device()
851 void bta_dm_close_acl(tBTA_DM_MSG *p_data) in bta_dm_close_acl() argument
853 tBTA_DM_API_REMOVE_ACL *p_remove_acl = &p_data->remove_acl; in bta_dm_close_acl()
902 void bta_dm_remove_all_acl(tBTA_DM_MSG *p_data) in bta_dm_remove_all_acl() argument
904 const tBTA_DM_LINK_TYPE link_type = p_data->remove_all_acl.link_type; in bta_dm_remove_all_acl()
937 void bta_dm_bond (tBTA_DM_MSG *p_data) in bta_dm_bond() argument
943 if (p_data->bond.transport == BTA_TRANSPORT_UNKNOWN) in bta_dm_bond()
944 status = BTM_SecBond ( p_data->bond.bd_addr, 0, NULL, 0 ); in bta_dm_bond()
946 … status = BTM_SecBondByTransport ( p_data->bond.bd_addr, p_data->bond.transport, 0, NULL, 0 ); in bta_dm_bond()
953 bdcpy(sec_event.auth_cmpl.bd_addr, p_data->bond.bd_addr); in bta_dm_bond()
954 p_name = BTM_SecReadDevName(p_data->bond.bd_addr); in bta_dm_bond()
973 bta_dm_remove_sec_dev_entry(p_data->bond.bd_addr); in bta_dm_bond()
990 void bta_dm_bond_cancel (tBTA_DM_MSG *p_data) in bta_dm_bond_cancel() argument
996 status = BTM_SecBondCancel ( p_data->bond_cancel.bd_addr ); in bta_dm_bond_cancel()
1017 void bta_dm_pin_reply (tBTA_DM_MSG *p_data) in bta_dm_pin_reply() argument
1022 current_trusted_mask = BTM_ReadTrustedMask(p_data->pin_reply.bd_addr); in bta_dm_pin_reply()
1033 if(p_data->pin_reply.accept) in bta_dm_pin_reply()
1036 …BTM_PINCodeReply(p_data->pin_reply.bd_addr, BTM_SUCCESS, p_data->pin_reply.pin_len, p_data->pin_re… in bta_dm_pin_reply()
1040 BTM_PINCodeReply(p_data->pin_reply.bd_addr, BTM_NOT_AUTHORIZED, 0, NULL, trusted_mask ); in bta_dm_pin_reply()
1119 void bta_dm_confirm(tBTA_DM_MSG *p_data) in bta_dm_confirm() argument
1123 if(p_data->confirm.accept == TRUE) in bta_dm_confirm()
1125 BTM_ConfirmReqReply(res, p_data->confirm.bd_addr); in bta_dm_confirm()
1137 void bta_dm_loc_oob(tBTA_DM_MSG *p_data) in bta_dm_loc_oob() argument
1139 UNUSED(p_data); in bta_dm_loc_oob()
1152 void bta_dm_ci_io_req_act(tBTA_DM_MSG *p_data) in bta_dm_ci_io_req_act() argument
1155 if(p_data->ci_io_req.auth_req) in bta_dm_ci_io_req_act()
1157 BTM_IoCapRsp(p_data->ci_io_req.bd_addr, p_data->ci_io_req.io_cap, in bta_dm_ci_io_req_act()
1158 p_data->ci_io_req.oob_data, auth_req); in bta_dm_ci_io_req_act()
1171 void bta_dm_ci_rmt_oob_act(tBTA_DM_MSG *p_data) in bta_dm_ci_rmt_oob_act() argument
1175 if(p_data->ci_rmt_oob.accept == TRUE) in bta_dm_ci_rmt_oob_act()
1177 BTM_RemoteOobDataReply(res, p_data->ci_rmt_oob.bd_addr, in bta_dm_ci_rmt_oob_act()
1178 p_data->ci_rmt_oob.c, p_data->ci_rmt_oob.r ); in bta_dm_ci_rmt_oob_act()
1191 void bta_dm_search_start (tBTA_DM_MSG *p_data) in bta_dm_search_start() argument
1196 size_t len = sizeof(tBT_UUID) * p_data->search.num_uuid; in bta_dm_search_start()
1203 (p_data->search.rs_res == BTA_DM_RS_NONE) && bta_dm_check_av(BTA_DM_API_SEARCH_EVT)) in bta_dm_search_start()
1205 memcpy(&bta_dm_cb.search_msg, &p_data->search, sizeof(tBTA_DM_API_SEARCH)); in bta_dm_search_start()
1211 bta_dm_search_cb.p_search_cback = p_data->search.p_cback; in bta_dm_search_start()
1212 bta_dm_search_cb.services = p_data->search.services; in bta_dm_search_start()
1217 if ((bta_dm_search_cb.num_uuid = p_data->search.num_uuid) != 0 && in bta_dm_search_start()
1218 p_data->search.p_uuid != NULL) { in bta_dm_search_start()
1220 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->search.p_uuid, len); in bta_dm_search_start()
1223 result.status = BTM_StartInquiry( (tBTM_INQ_PARMS*)&p_data->search.inq_params, in bta_dm_search_start()
1245 void bta_dm_search_cancel (tBTA_DM_MSG *p_data) in bta_dm_search_cancel() argument
1247 UNUSED(p_data); in bta_dm_search_cancel()
1298 void bta_dm_discover (tBTA_DM_MSG *p_data) in bta_dm_discover() argument
1301 size_t len = sizeof(tBT_UUID) * p_data->discover.num_uuid; in bta_dm_discover()
1304 p_data->discover.services, p_data->discover.sdp_search); in bta_dm_discover()
1307 bta_dm_search_cb.services = p_data->discover.services; in bta_dm_discover()
1312 if ((bta_dm_search_cb.num_uuid = p_data->discover.num_uuid) != 0 && in bta_dm_discover()
1313 p_data->discover.p_uuid != NULL) { in bta_dm_discover()
1315 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->discover.p_uuid, len); in bta_dm_discover()
1320 bta_dm_search_cb.p_search_cback = p_data->discover.p_cback; in bta_dm_discover()
1321 bta_dm_search_cb.sdp_search = p_data->discover.sdp_search; in bta_dm_discover()
1326 bta_dm_search_cb.sdp_search = p_data->discover.sdp_search; in bta_dm_discover()
1327 bta_dm_search_cb.p_btm_inq_info = BTM_InqDbRead (p_data->discover.bd_addr); in bta_dm_discover()
1328 bta_dm_search_cb.transport = p_data->discover.transport; in bta_dm_discover()
1331 memcpy(&bta_dm_search_cb.uuid, &p_data->discover.uuid, sizeof(tSDP_UUID)); in bta_dm_discover()
1332 bta_dm_discover_device(p_data->discover.bd_addr); in bta_dm_discover()
1344 void bta_dm_di_disc_cmpl(tBTA_DM_MSG *p_data) in bta_dm_di_disc_cmpl() argument
1351 if((p_data->hdr.offset == SDP_SUCCESS) in bta_dm_di_disc_cmpl()
1352 || (p_data->hdr.offset == SDP_DB_FULL)) in bta_dm_di_disc_cmpl()
1423 void bta_dm_di_disc (tBTA_DM_MSG *p_data) in bta_dm_di_disc() argument
1427 bta_dm_search_cb.p_search_cback = p_data->di_disc.p_cback; in bta_dm_di_disc()
1428 bdcpy(bta_dm_search_cb.peer_bdaddr, p_data->di_disc.bd_addr); in bta_dm_di_disc()
1429 bta_dm_di_cb.p_di_db = p_data->di_disc.p_sdp_db; in bta_dm_di_disc()
1432 if (SDP_DiDiscover(bta_dm_search_cb.peer_bdaddr, p_data->di_disc.p_sdp_db, in bta_dm_di_disc()
1433 p_data->di_disc.len, in bta_dm_di_disc()
1443 p_data->hdr.offset = result; in bta_dm_di_disc()
1503 void bta_dm_inq_cmpl (tBTA_DM_MSG *p_data) in bta_dm_inq_cmpl() argument
1509 data.inq_cmpl.num_resps = p_data->inq_cmpl.num; in bta_dm_inq_cmpl()
1539 void bta_dm_rmt_name (tBTA_DM_MSG *p_data) in bta_dm_rmt_name() argument
1543 if( p_data->rem_name.result.disc_res.bd_name[0] && bta_dm_search_cb.p_btm_inq_info) in bta_dm_rmt_name()
1561 void bta_dm_disc_rmt_name (tBTA_DM_MSG *p_data) in bta_dm_disc_rmt_name() argument
1567 p_btm_inq_info = BTM_InqDbRead (p_data->rem_name.result.disc_res.bd_addr); in bta_dm_disc_rmt_name()
1570 if( p_data->rem_name.result.disc_res.bd_name[0] ) in bta_dm_disc_rmt_name()
1576 bta_dm_discover_device(p_data->rem_name.result.disc_res.bd_addr); in bta_dm_disc_rmt_name()
1588 void bta_dm_sdp_result (tBTA_DM_MSG *p_data) in bta_dm_sdp_result() argument
1606 if((p_data->sdp_event.sdp_result == SDP_SUCCESS) in bta_dm_sdp_result()
1607 || (p_data->sdp_event.sdp_result == SDP_NO_RECS_MATCH) in bta_dm_sdp_result()
1608 || (p_data->sdp_event.sdp_result == SDP_DB_FULL)) in bta_dm_sdp_result()
1610 APPL_TRACE_DEBUG("sdp_result::0x%x", p_data->sdp_event.sdp_result); in bta_dm_sdp_result()
1671 if (((p_data->sdp_event.sdp_result == SDP_DB_FULL) && in bta_dm_sdp_result()
1801 …if(p_data->sdp_event.sdp_result == SDP_CONN_FAILED || p_data->sdp_event.sdp_result == SDP_CONN_REJ… in bta_dm_sdp_result()
1802 || p_data->sdp_event.sdp_result == SDP_SECURITY_ERR) in bta_dm_sdp_result()
1833 void bta_dm_search_cmpl(tBTA_DM_MSG *p_data) in bta_dm_search_cmpl() argument
1841 if (p_data->hdr.layer_specific == BTA_DM_API_DI_DISCOVER_EVT) in bta_dm_search_cmpl()
1842 bta_dm_di_disc_cmpl(p_data); in bta_dm_search_cmpl()
1856 void bta_dm_disc_result (tBTA_DM_MSG *p_data) in bta_dm_disc_result() argument
1864 bta_dm_search_cb.p_search_cback(BTA_DM_DISC_RES_EVT, &p_data->disc_result.result); in bta_dm_disc_result()
1883 void bta_dm_search_result (tBTA_DM_MSG *p_data) in bta_dm_search_result() argument
1887 p_data->disc_result.result.disc_res.services); in bta_dm_search_result()
1891 ||(( bta_dm_search_cb.services ) && ( p_data->disc_result.result.disc_res.services ))) in bta_dm_search_result()
1893 bta_dm_search_cb.p_search_cback(BTA_DM_DISC_RES_EVT, &p_data->disc_result.result); in bta_dm_search_result()
1944 void bta_dm_free_sdp_db (tBTA_DM_MSG *p_data) in bta_dm_free_sdp_db() argument
1946 UNUSED(p_data); in bta_dm_free_sdp_db()
1959 void bta_dm_queue_search(tBTA_DM_MSG *p_data) in bta_dm_queue_search() argument
1964 memcpy(bta_dm_search_cb.p_search_queue, p_data, in bta_dm_queue_search()
1977 void bta_dm_queue_disc(tBTA_DM_MSG *p_data) in bta_dm_queue_disc() argument
1982 memcpy(bta_dm_search_cb.p_search_queue, p_data, in bta_dm_queue_disc()
1995 void bta_dm_search_clear_queue(tBTA_DM_MSG *p_data) in bta_dm_search_clear_queue() argument
1997 UNUSED(p_data); in bta_dm_search_clear_queue()
2010 void bta_dm_search_cancel_cmpl (tBTA_DM_MSG *p_data) in bta_dm_search_cancel_cmpl() argument
2012 UNUSED(p_data); in bta_dm_search_cancel_cmpl()
2031 void bta_dm_search_cancel_transac_cmpl(tBTA_DM_MSG *p_data) in bta_dm_search_cancel_transac_cmpl() argument
2033 UNUSED(p_data); in bta_dm_search_cancel_transac_cmpl()
2049 void bta_dm_search_cancel_notify (tBTA_DM_MSG *p_data) in bta_dm_search_cancel_notify() argument
2051 UNUSED(p_data); in bta_dm_search_cancel_notify()
2635 static void bta_dm_pinname_cback (void *p_data) in bta_dm_pinname_cback() argument
2637 tBTM_REMOTE_DEV_NAME *p_result = (tBTM_REMOTE_DEV_NAME *)p_data; in bta_dm_pinname_cback()
2830 static UINT8 bta_dm_sp_cback (tBTM_SP_EVT event, tBTM_SP_EVT_DATA *p_data) in bta_dm_sp_cback() argument
2846 bta_dm_co_io_req(p_data->io_req.bd_addr, &p_data->io_req.io_cap, in bta_dm_sp_cback()
2847 &p_data->io_req.oob_data, &p_data->io_req.auth_req, p_data->io_req.is_orig); in bta_dm_sp_cback()
2849 … APPL_TRACE_EVENT("io mitm: %d oob_data:%d", p_data->io_req.auth_req, p_data->io_req.oob_data); in bta_dm_sp_cback()
2853 bta_dm_co_io_rsp(p_data->io_rsp.bd_addr, p_data->io_rsp.io_cap, in bta_dm_sp_cback()
2854 p_data->io_rsp.oob_data, p_data->io_rsp.auth_req ); in bta_dm_sp_cback()
2860 bta_dm_cb.just_works = sec_event.cfm_req.just_works = p_data->cfm_req.just_works; in bta_dm_sp_cback()
2861 sec_event.cfm_req.loc_auth_req = p_data->cfm_req.loc_auth_req; in bta_dm_sp_cback()
2862 sec_event.cfm_req.rmt_auth_req = p_data->cfm_req.rmt_auth_req; in bta_dm_sp_cback()
2863 sec_event.cfm_req.loc_io_caps = p_data->cfm_req.loc_io_caps; in bta_dm_sp_cback()
2864 sec_event.cfm_req.rmt_io_caps = p_data->cfm_req.rmt_io_caps; in bta_dm_sp_cback()
2877 if(p_data->cfm_req.bd_name[0] == 0) in bta_dm_sp_cback()
2880 bdcpy(bta_dm_cb.pin_bd_addr, p_data->cfm_req.bd_addr); in bta_dm_sp_cback()
2881 BTA_COPY_DEVICE_CLASS(bta_dm_cb.pin_dev_class, p_data->cfm_req.dev_class); in bta_dm_sp_cback()
2882 if ((BTM_ReadRemoteDeviceName(p_data->cfm_req.bd_addr, bta_dm_pinname_cback, in bta_dm_sp_cback()
2891 bdcpy(sec_event.key_notif.bd_addr, p_data->cfm_req.bd_addr); in bta_dm_sp_cback()
2892 BTA_COPY_DEVICE_CLASS(sec_event.key_notif.dev_class, p_data->cfm_req.dev_class); in bta_dm_sp_cback()
2894 (char*)p_data->cfm_req.bd_name, BD_NAME_LEN); in bta_dm_sp_cback()
2898 bta_dm_cb.num_val = sec_event.key_notif.passkey = p_data->key_notif.passkey; in bta_dm_sp_cback()
2903 if(p_data->key_notif.bd_name[0] == 0) in bta_dm_sp_cback()
2906 bdcpy(bta_dm_cb.pin_bd_addr, p_data->key_notif.bd_addr); in bta_dm_sp_cback()
2907 BTA_COPY_DEVICE_CLASS(bta_dm_cb.pin_dev_class, p_data->key_notif.dev_class); in bta_dm_sp_cback()
2908 if ((BTM_ReadRemoteDeviceName(p_data->key_notif.bd_addr, bta_dm_pinname_cback, in bta_dm_sp_cback()
2915 bdcpy(sec_event.key_notif.bd_addr, p_data->key_notif.bd_addr); in bta_dm_sp_cback()
2916 BTA_COPY_DEVICE_CLASS(sec_event.key_notif.dev_class, p_data->key_notif.dev_class); in bta_dm_sp_cback()
2918 (char*)p_data->key_notif.bd_name, BD_NAME_LEN); in bta_dm_sp_cback()
2928 bta_dm_co_loc_oob((BOOLEAN)(p_data->loc_oob.status == BTM_SUCCESS), in bta_dm_sp_cback()
2929 p_data->loc_oob.c, p_data->loc_oob.r); in bta_dm_sp_cback()
2934 if (p_data->rmt_oob.bd_name[0] == 0) in bta_dm_sp_cback()
2937 bdcpy(bta_dm_cb.pin_bd_addr, p_data->rmt_oob.bd_addr); in bta_dm_sp_cback()
2938 BTA_COPY_DEVICE_CLASS(bta_dm_cb.pin_dev_class, p_data->rmt_oob.dev_class); in bta_dm_sp_cback()
2939 if ((BTM_ReadRemoteDeviceName(p_data->rmt_oob.bd_addr, bta_dm_pinname_cback, in bta_dm_sp_cback()
2945 bdcpy(sec_event.rmt_oob.bd_addr, p_data->rmt_oob.bd_addr); in bta_dm_sp_cback()
2946 BTA_COPY_DEVICE_CLASS(sec_event.rmt_oob.dev_class, p_data->rmt_oob.dev_class); in bta_dm_sp_cback()
2947 strlcpy((char*)sec_event.rmt_oob.bd_name, (char*)p_data->rmt_oob.bd_name, BD_NAME_LEN); in bta_dm_sp_cback()
2951 bta_dm_co_rmt_oob(p_data->rmt_oob.bd_addr); in bta_dm_sp_cback()
2959 memcpy(&sec_event.key_press, &p_data->key_press, sizeof(tBTM_SP_KEYPRESS)); in bta_dm_sp_cback()
2964 bta_dm_co_lk_upgrade(p_data->upgrade.bd_addr, &p_data->upgrade.upgrade ); in bta_dm_sp_cback()
3007 static void bta_dm_bl_change_cback (tBTM_BL_EVENT_DATA *p_data) in bta_dm_bl_change_cback() argument
3012 p_msg->event = p_data->event; in bta_dm_bl_change_cback()
3018 bdcpy(p_msg->bd_addr, p_data->conn.p_bda); in bta_dm_bl_change_cback()
3020 p_msg->transport = p_data->conn.transport; in bta_dm_bl_change_cback()
3021 p_msg->handle = p_data->conn.handle; in bta_dm_bl_change_cback()
3025 bdcpy(p_msg->bd_addr, p_data->discn.p_bda); in bta_dm_bl_change_cback()
3027 p_msg->transport = p_data->discn.transport; in bta_dm_bl_change_cback()
3028 p_msg->handle = p_data->discn.handle; in bta_dm_bl_change_cback()
3032 p_msg->busy_level = p_data->update.busy_level; in bta_dm_bl_change_cback()
3033 p_msg->busy_level_flags = p_data->update.busy_level_flags; in bta_dm_bl_change_cback()
3036 p_msg->new_role = p_data->role_chg.new_role; in bta_dm_bl_change_cback()
3037 p_msg->hci_status = p_data->role_chg.hci_status; in bta_dm_bl_change_cback()
3038 bdcpy(p_msg->bd_addr, p_data->role_chg.p_bda); in bta_dm_bl_change_cback()
3041 bdcpy(p_msg->bd_addr, p_data->conn.p_bda); in bta_dm_bl_change_cback()
3134 void bta_dm_acl_change(tBTA_DM_MSG *p_data) in bta_dm_acl_change() argument
3140 BOOLEAN is_new = p_data->acl_change.is_new; in bta_dm_acl_change()
3141 BD_ADDR_PTR p_bda = p_data->acl_change.bd_addr; in bta_dm_acl_change()
3148 switch(p_data->acl_change.event) in bta_dm_acl_change()
3153 conn.busy_level.level = p_data->acl_change.busy_level; in bta_dm_acl_change()
3154 conn.busy_level.level_flags = p_data->acl_change.busy_level_flags; in bta_dm_acl_change()
3164 p_dev->info, p_data->acl_change.new_role, bta_dm_cb.device_list.count); in bta_dm_acl_change()
3168 if(p_data->acl_change.new_role == HCI_ROLE_SLAVE && bta_dm_cb.device_list.count > 1 in bta_dm_acl_change()
3169 && p_data->acl_change.hci_status == HCI_SUCCESS) in bta_dm_acl_change()
3176 … else if (p_bta_dm_cfg->avoid_scatter && (p_data->acl_change.new_role == HCI_ROLE_MASTER)) in bta_dm_acl_change()
3194 …bta_sys_notify_role_chg(p_data->acl_change.bd_addr, p_data->acl_change.new_role, p_data->acl_chang… in bta_dm_acl_change()
3196 conn.role_chg.new_role = (UINT8) p_data->acl_change.new_role; in bta_dm_acl_change()
3204 if (p_data->acl_change.event == BTM_BL_COLLISION_EVT) in bta_dm_acl_change()
3216 && bta_dm_cb.device_list.peer_device[i].conn_handle == p_data->acl_change.handle in bta_dm_acl_change()
3231 bta_dm_cb.device_list.peer_device[i].conn_handle = p_data->acl_change.handle; in bta_dm_acl_change()
3232 if (p_data->acl_change.transport == BT_TRANSPORT_LE) in bta_dm_acl_change()
3246 conn.link_up.link_type = p_data->acl_change.transport; in bta_dm_acl_change()
3247 bta_dm_cb.device_list.peer_device[i].transport = p_data->acl_change.transport; in bta_dm_acl_change()
3265 ||bta_dm_cb.device_list.peer_device[i].transport != p_data->acl_change.transport in bta_dm_acl_change()
3289 if ((p_data->acl_change.transport == BT_TRANSPORT_LE) && in bta_dm_acl_change()
3292 conn.link_down.link_type = p_data->acl_change.transport; in bta_dm_acl_change()
4102 void bta_dm_enable_test_mode(tBTA_DM_MSG *p_data) in bta_dm_enable_test_mode() argument
4104 UNUSED(p_data); in bta_dm_enable_test_mode()
4118 void bta_dm_disable_test_mode(tBTA_DM_MSG *p_data) in bta_dm_disable_test_mode() argument
4120 UNUSED(p_data); in bta_dm_disable_test_mode()
4134 void bta_dm_execute_callback(tBTA_DM_MSG *p_data) in bta_dm_execute_callback() argument
4137 if(p_data->exec_cback.p_exec_cback == NULL) in bta_dm_execute_callback()
4142 p_data->exec_cback.p_exec_cback(p_data->exec_cback.p_param); in bta_dm_execute_callback()
4209 void bta_dm_set_encryption (tBTA_DM_MSG *p_data) in bta_dm_set_encryption() argument
4214 if (!p_data->set_encryption.p_callback) in bta_dm_set_encryption()
4221 …if (bdcmp( bta_dm_cb.device_list.peer_device[i].peer_bdaddr, p_data->set_encryption.bd_addr) == 0 … in bta_dm_set_encryption()
4230 (*p_data->set_encryption.p_callback)(p_data->set_encryption.bd_addr, in bta_dm_set_encryption()
4231 p_data->set_encryption.transport, in bta_dm_set_encryption()
4236 if (BTM_SetEncryption(p_data->set_encryption.bd_addr, p_data->set_encryption.transport, in bta_dm_set_encryption()
4237 bta_dm_encrypt_cback, NULL, p_data->set_encryption.sec_act) in bta_dm_set_encryption()
4240 … bta_dm_cb.device_list.peer_device[i].p_encrypt_cback = p_data->set_encryption.p_callback; in bta_dm_set_encryption()
4325 static UINT8 bta_dm_ble_smp_cback (tBTM_LE_EVT event, BD_ADDR bda, tBTM_LE_EVT_DATA *p_data) in bta_dm_ble_smp_cback() argument
4341 &p_data->io_req.io_cap, in bta_dm_ble_smp_cback()
4342 &p_data->io_req.oob_data, in bta_dm_ble_smp_cback()
4343 &p_data->io_req.auth_req, in bta_dm_ble_smp_cback()
4344 &p_data->io_req.max_key_size, in bta_dm_ble_smp_cback()
4345 &p_data->io_req.init_keys, in bta_dm_ble_smp_cback()
4346 &p_data->io_req.resp_keys); in bta_dm_ble_smp_cback()
4348 … APPL_TRACE_EVENT("io mitm: %d oob_data:%d", p_data->io_req.auth_req, p_data->io_req.oob_data); in bta_dm_ble_smp_cback()
4369 sec_event.key_notif.passkey = p_data->key_notif; in bta_dm_ble_smp_cback()
4386 sec_event.key_notif.passkey = p_data->key_notif; in bta_dm_ble_smp_cback()
4392 sec_event.ble_key.key_type = p_data->key.key_type; in bta_dm_ble_smp_cback()
4393 sec_event.ble_key.p_key_value = p_data->key.p_key_value; in bta_dm_ble_smp_cback()
4408 if (p_data->complt.reason != 0) in bta_dm_ble_smp_cback()
4410 … sec_event.auth_cmpl.fail_reason = BTA_DM_AUTH_CONVERT_SMP_CODE(((UINT8)p_data->complt.reason)); in bta_dm_ble_smp_cback()
4418 if (!p_data->complt.smp_over_br) in bta_dm_ble_smp_cback()
4486 void bta_dm_add_blekey (tBTA_DM_MSG *p_data) in bta_dm_add_blekey() argument
4488 if (!BTM_SecAddBleKey (p_data->add_ble_key.bd_addr, in bta_dm_add_blekey()
4489 (tBTM_LE_KEY_VALUE *)&p_data->add_ble_key.blekey, in bta_dm_add_blekey()
4490 p_data->add_ble_key.key_type)) in bta_dm_add_blekey()
4493 … (p_data->add_ble_key.bd_addr[0]<<24)+(p_data->add_ble_key.bd_addr[1]<<16)+\ in bta_dm_add_blekey()
4494 (p_data->add_ble_key.bd_addr[2]<<8)+p_data->add_ble_key.bd_addr[3], in bta_dm_add_blekey()
4495 (p_data->add_ble_key.bd_addr[4]<<8)+p_data->add_ble_key.bd_addr[5]); in bta_dm_add_blekey()
4510 void bta_dm_add_ble_device (tBTA_DM_MSG *p_data) in bta_dm_add_ble_device() argument
4512 if (!BTM_SecAddBleDevice (p_data->add_ble_device.bd_addr, NULL, in bta_dm_add_ble_device()
4513 p_data->add_ble_device.dev_type , in bta_dm_add_ble_device()
4514 p_data->add_ble_device.addr_type)) in bta_dm_add_ble_device()
4517 … (p_data->add_ble_device.bd_addr[0]<<24)+(p_data->add_ble_device.bd_addr[1]<<16)+ \ in bta_dm_add_ble_device()
4518 (p_data->add_ble_device.bd_addr[2]<<8)+p_data->add_ble_device.bd_addr[3], in bta_dm_add_ble_device()
4519 … (p_data->add_ble_device.bd_addr[4]<<8)+p_data->add_ble_device.bd_addr[5]); in bta_dm_add_ble_device()
4534 void bta_dm_ble_passkey_reply (tBTA_DM_MSG *p_data) in bta_dm_ble_passkey_reply() argument
4536 if (p_data->pin_reply.accept) in bta_dm_ble_passkey_reply()
4538 …BTM_BlePasskeyReply(p_data->ble_passkey_reply.bd_addr, BTM_SUCCESS, p_data->ble_passkey_reply.pass… in bta_dm_ble_passkey_reply()
4542 …BTM_BlePasskeyReply(p_data->ble_passkey_reply.bd_addr, BTM_NOT_AUTHORIZED, p_data->ble_passkey_rep… in bta_dm_ble_passkey_reply()
4557 void bta_dm_ble_confirm_reply (tBTA_DM_MSG *p_data) in bta_dm_ble_confirm_reply() argument
4559 if (p_data->confirm.accept) in bta_dm_ble_confirm_reply()
4561 BTM_BleConfirmReply(p_data->confirm.bd_addr, BTM_SUCCESS); in bta_dm_ble_confirm_reply()
4565 BTM_BleConfirmReply(p_data->ble_passkey_reply.bd_addr, BTM_NOT_AUTHORIZED); in bta_dm_ble_confirm_reply()
4578 void bta_dm_security_grant (tBTA_DM_MSG *p_data) in bta_dm_security_grant() argument
4580 BTM_SecurityGrant(p_data->ble_sec_grant.bd_addr, p_data->ble_sec_grant.res); in bta_dm_security_grant()
4592 void bta_dm_ble_set_bg_conn_type (tBTA_DM_MSG *p_data) in bta_dm_ble_set_bg_conn_type() argument
4594 BTM_BleSetBgConnType(p_data->ble_set_bd_conn_type.bg_conn_type, in bta_dm_ble_set_bg_conn_type()
4595 p_data->ble_set_bd_conn_type.p_select_cback); in bta_dm_ble_set_bg_conn_type()
4607 void bta_dm_ble_set_conn_params (tBTA_DM_MSG *p_data) in bta_dm_ble_set_conn_params() argument
4609 BTM_BleSetPrefConnParams(p_data->ble_set_conn_params.peer_bda, in bta_dm_ble_set_conn_params()
4610 p_data->ble_set_conn_params.conn_int_min, in bta_dm_ble_set_conn_params()
4611 p_data->ble_set_conn_params.conn_int_max, in bta_dm_ble_set_conn_params()
4612 p_data->ble_set_conn_params.slave_latency, in bta_dm_ble_set_conn_params()
4613 p_data->ble_set_conn_params.supervision_tout); in bta_dm_ble_set_conn_params()
4625 void bta_dm_ble_set_scan_params(tBTA_DM_MSG *p_data) in bta_dm_ble_set_scan_params() argument
4627 BTM_BleSetScanParams(p_data->ble_set_scan_params.client_if, in bta_dm_ble_set_scan_params()
4628 p_data->ble_set_scan_params.scan_int, in bta_dm_ble_set_scan_params()
4629 p_data->ble_set_scan_params.scan_window, in bta_dm_ble_set_scan_params()
4630 p_data->ble_set_scan_params.scan_mode, in bta_dm_ble_set_scan_params()
4631 p_data->ble_set_scan_params.scan_param_setup_cback); in bta_dm_ble_set_scan_params()
4643 void bta_dm_ble_set_conn_scan_params (tBTA_DM_MSG *p_data) in bta_dm_ble_set_conn_scan_params() argument
4645 BTM_BleSetConnScanParams(p_data->ble_set_conn_scan_params.scan_int, in bta_dm_ble_set_conn_scan_params()
4646 p_data->ble_set_conn_scan_params.scan_window); in bta_dm_ble_set_conn_scan_params()
4657 void bta_dm_ble_update_conn_params (tBTA_DM_MSG *p_data) in bta_dm_ble_update_conn_params() argument
4659 if (!L2CA_UpdateBleConnParams(p_data->ble_update_conn_params.bd_addr, in bta_dm_ble_update_conn_params()
4660 p_data->ble_update_conn_params.min_int, in bta_dm_ble_update_conn_params()
4661 p_data->ble_update_conn_params.max_int, in bta_dm_ble_update_conn_params()
4662 p_data->ble_update_conn_params.latency, in bta_dm_ble_update_conn_params()
4663 p_data->ble_update_conn_params.timeout)) in bta_dm_ble_update_conn_params()
4679 void bta_dm_ble_config_local_privacy (tBTA_DM_MSG *p_data) in bta_dm_ble_config_local_privacy() argument
4681 BTM_BleConfigPrivacy (p_data->ble_local_privacy.privacy_enable); in bta_dm_ble_config_local_privacy()
4694 void bta_dm_ble_observe (tBTA_DM_MSG *p_data) in bta_dm_ble_observe() argument
4697 if (p_data->ble_observe.start) in bta_dm_ble_observe()
4700 bta_dm_search_cb.p_scan_cback = p_data->ble_observe.p_cback; in bta_dm_ble_observe()
4701 if ((status = BTM_BleObserve(TRUE, p_data->ble_observe.duration, in bta_dm_ble_observe()
4728 void bta_dm_ble_set_adv_params (tBTA_DM_MSG *p_data) in bta_dm_ble_set_adv_params() argument
4730 BTM_BleSetAdvParams(p_data->ble_set_adv_params.adv_int_min, in bta_dm_ble_set_adv_params()
4731 p_data->ble_set_adv_params.adv_int_max, in bta_dm_ble_set_adv_params()
4732 p_data->ble_set_adv_params.p_dir_bda, in bta_dm_ble_set_adv_params()
4745 void bta_dm_ble_set_adv_config (tBTA_DM_MSG *p_data) in bta_dm_ble_set_adv_config() argument
4749 if (BTM_BleWriteAdvData(p_data->ble_set_adv_data.data_mask, in bta_dm_ble_set_adv_config()
4750 (tBTM_BLE_ADV_DATA *)&p_data->ble_set_adv_data.adv_cfg) == BTM_SUCCESS) in bta_dm_ble_set_adv_config()
4755 if (p_data->ble_set_adv_data.p_adv_data_cback) in bta_dm_ble_set_adv_config()
4756 (*p_data->ble_set_adv_data.p_adv_data_cback)(status); in bta_dm_ble_set_adv_config()
4768 void bta_dm_ble_set_scan_rsp (tBTA_DM_MSG *p_data) in bta_dm_ble_set_scan_rsp() argument
4772 if(BTM_BleWriteScanRsp(p_data->ble_set_adv_data.data_mask, in bta_dm_ble_set_scan_rsp()
4773 (tBTM_BLE_ADV_DATA *)&p_data->ble_set_adv_data.adv_cfg) == BTM_SUCCESS) in bta_dm_ble_set_scan_rsp()
4778 if (p_data->ble_set_adv_data.p_adv_data_cback) in bta_dm_ble_set_scan_rsp()
4779 (*p_data->ble_set_adv_data.p_adv_data_cback)(status); in bta_dm_ble_set_scan_rsp()
4791 void bta_dm_ble_set_data_length(tBTA_DM_MSG *p_data) in bta_dm_ble_set_data_length() argument
4793 if (BTM_SetBleDataLength(p_data->ble_set_data_length.remote_bda, in bta_dm_ble_set_data_length()
4794 p_data->ble_set_data_length.tx_data_length) != BTM_SUCCESS) in bta_dm_ble_set_data_length()
4809 void bta_dm_ble_broadcast (tBTA_DM_MSG *p_data) in bta_dm_ble_broadcast() argument
4811 BTM_BleBroadcast(p_data->ble_observe.start); in bta_dm_ble_broadcast()
4823 void bta_dm_ble_multi_adv_enb(tBTA_DM_MSG *p_data) in bta_dm_ble_multi_adv_enb() argument
4827 bta_dm_cb.p_multi_adv_cback = p_data->ble_multi_adv_enb.p_cback; in bta_dm_ble_multi_adv_enb()
4828 if(BTM_BleMaxMultiAdvInstanceCount() > 0 && NULL != p_data->ble_multi_adv_enb.p_ref) in bta_dm_ble_multi_adv_enb()
4831 p_data->ble_multi_adv_enb.p_params, in bta_dm_ble_multi_adv_enb()
4832 p_data->ble_multi_adv_enb.p_cback, in bta_dm_ble_multi_adv_enb()
4833 p_data->ble_multi_adv_enb.p_ref); in bta_dm_ble_multi_adv_enb()
4839 p_data->ble_multi_adv_enb.p_ref, BTA_FAILURE); in bta_dm_ble_multi_adv_enb()
4851 void bta_dm_ble_multi_adv_upd_param(tBTA_DM_MSG *p_data) in bta_dm_ble_multi_adv_upd_param() argument
4856 if(BTM_BleMaxMultiAdvInstanceCount() > 0 && p_data->ble_multi_adv_param.inst_id > 0 in bta_dm_ble_multi_adv_upd_param()
4857 && p_data->ble_multi_adv_param.inst_id < BTM_BleMaxMultiAdvInstanceCount()) in bta_dm_ble_multi_adv_upd_param()
4859 btm_status = BTM_BleUpdateAdvInstParam(p_data->ble_multi_adv_param.inst_id, in bta_dm_ble_multi_adv_upd_param()
4860 (tBTM_BLE_ADV_PARAMS*)p_data->ble_multi_adv_param.p_params); in bta_dm_ble_multi_adv_upd_param()
4865 p_ref = btm_ble_multi_adv_get_ref(p_data->ble_multi_adv_param.inst_id); in bta_dm_ble_multi_adv_upd_param()
4867 p_data->ble_multi_adv_param.inst_id, p_ref, BTA_FAILURE); in bta_dm_ble_multi_adv_upd_param()
4880 void bta_dm_ble_multi_adv_data(tBTA_DM_MSG *p_data) in bta_dm_ble_multi_adv_data() argument
4885 if(BTM_BleMaxMultiAdvInstanceCount() > 0 && p_data->ble_multi_adv_data.inst_id > 0 in bta_dm_ble_multi_adv_data()
4886 && p_data->ble_multi_adv_data.inst_id < BTM_BleMaxMultiAdvInstanceCount()) in bta_dm_ble_multi_adv_data()
4888 btm_status = BTM_BleCfgAdvInstData(p_data->ble_multi_adv_data.inst_id, in bta_dm_ble_multi_adv_data()
4889 p_data->ble_multi_adv_data.is_scan_rsp, in bta_dm_ble_multi_adv_data()
4890 p_data->ble_multi_adv_data.data_mask, in bta_dm_ble_multi_adv_data()
4891 (tBTM_BLE_ADV_DATA*)&p_data->ble_multi_adv_data.data); in bta_dm_ble_multi_adv_data()
4896 p_ref = btm_ble_multi_adv_get_ref(p_data->ble_multi_adv_data.inst_id); in bta_dm_ble_multi_adv_data()
4898 p_data->ble_multi_adv_data.inst_id, p_ref, BTA_FAILURE); in bta_dm_ble_multi_adv_data()
4911 void btm_dm_ble_multi_adv_disable(tBTA_DM_MSG *p_data) in btm_dm_ble_multi_adv_disable() argument
4916 if(BTM_BleMaxMultiAdvInstanceCount() > 0 && p_data->ble_multi_adv_disable.inst_id > 0 in btm_dm_ble_multi_adv_disable()
4917 && p_data->ble_multi_adv_disable.inst_id < BTM_BleMaxMultiAdvInstanceCount()) in btm_dm_ble_multi_adv_disable()
4919 btm_status = BTM_BleDisableAdvInstance(p_data->ble_multi_adv_disable.inst_id); in btm_dm_ble_multi_adv_disable()
4924 p_ref = btm_ble_multi_adv_get_ref(p_data->ble_multi_adv_disable.inst_id); in btm_dm_ble_multi_adv_disable()
4926 p_data->ble_multi_adv_disable.inst_id, p_ref, BTA_FAILURE); in btm_dm_ble_multi_adv_disable()
4939 void bta_dm_ble_setup_storage (tBTA_DM_MSG *p_data) in bta_dm_ble_setup_storage() argument
4948 btm_status = BTM_BleSetStorageConfig(p_data->ble_set_storage.batch_scan_full_max, in bta_dm_ble_setup_storage()
4949 p_data->ble_set_storage.batch_scan_trunc_max, in bta_dm_ble_setup_storage()
4950 p_data->ble_set_storage.batch_scan_notify_threshold, in bta_dm_ble_setup_storage()
4951 p_data->ble_set_storage.p_setup_cback, in bta_dm_ble_setup_storage()
4952 p_data->ble_set_storage.p_thres_cback, in bta_dm_ble_setup_storage()
4953 p_data->ble_set_storage.p_read_rep_cback, in bta_dm_ble_setup_storage()
4954 p_data->ble_set_storage.ref_value); in bta_dm_ble_setup_storage()
4958 bta_ble_scan_setup_cb(BTM_BLE_BATCH_SCAN_CFG_STRG_EVT, p_data->ble_set_storage.ref_value, in bta_dm_ble_setup_storage()
4971 void bta_dm_ble_enable_batch_scan (tBTA_DM_MSG *p_data) in bta_dm_ble_enable_batch_scan() argument
4980 btm_status = BTM_BleEnableBatchScan(p_data->ble_enable_scan.scan_mode, in bta_dm_ble_enable_batch_scan()
4981 p_data->ble_enable_scan.scan_int, in bta_dm_ble_enable_batch_scan()
4982 p_data->ble_enable_scan.scan_window, in bta_dm_ble_enable_batch_scan()
4983 p_data->ble_enable_scan.discard_rule, in bta_dm_ble_enable_batch_scan()
4984 p_data->ble_enable_scan.addr_type, in bta_dm_ble_enable_batch_scan()
4985 p_data->ble_enable_scan.ref_value); in bta_dm_ble_enable_batch_scan()
4989 bta_ble_scan_setup_cb(BTM_BLE_BATCH_SCAN_ENABLE_EVT, p_data->ble_enable_scan.ref_value, in bta_dm_ble_enable_batch_scan()
5002 void bta_dm_ble_disable_batch_scan (tBTA_DM_MSG *p_data) in bta_dm_ble_disable_batch_scan() argument
5004 UNUSED(p_data); in bta_dm_ble_disable_batch_scan()
5012 btm_status = BTM_BleDisableBatchScan(p_data->ble_disable_scan.ref_value); in bta_dm_ble_disable_batch_scan()
5016 bta_ble_scan_setup_cb(BTM_BLE_BATCH_SCAN_DISABLE_EVT, p_data->ble_enable_scan.ref_value, in bta_dm_ble_disable_batch_scan()
5029 void bta_dm_ble_read_scan_reports(tBTA_DM_MSG *p_data) in bta_dm_ble_read_scan_reports() argument
5038 btm_status = BTM_BleReadScanReports(p_data->ble_read_reports.scan_type, in bta_dm_ble_read_scan_reports()
5039 p_data->ble_read_reports.ref_value); in bta_dm_ble_read_scan_reports()
5043 bta_ble_scan_setup_cb(BTM_BLE_BATCH_SCAN_READ_REPTS_EVT, p_data->ble_enable_scan.ref_value, in bta_dm_ble_read_scan_reports()
5056 void bta_dm_ble_track_advertiser(tBTA_DM_MSG *p_data) in bta_dm_ble_track_advertiser() argument
5069 p_data->ble_track_advert.p_track_adv_cback, in bta_dm_ble_track_advertiser()
5070 p_data->ble_track_advert.ref_value); in bta_dm_ble_track_advertiser()
5077 track_adv_data.client_if = (UINT8)p_data->ble_track_advert.ref_value; in bta_dm_ble_track_advertiser()
5078 p_data->ble_track_advert.p_track_adv_cback(&track_adv_data); in bta_dm_ble_track_advertiser()
5154 void bta_dm_cfg_filter_cond (tBTA_DM_MSG *p_data) in bta_dm_cfg_filter_cond() argument
5165 if ((st = BTM_BleCfgFilterCondition(p_data->ble_cfg_filter_cond.action, in bta_dm_cfg_filter_cond()
5166 p_data->ble_cfg_filter_cond.cond_type, in bta_dm_cfg_filter_cond()
5167 (tBTM_BLE_PF_FILT_INDEX)p_data->ble_cfg_filter_cond.filt_index, in bta_dm_cfg_filter_cond()
5168 (tBTM_BLE_PF_COND_PARAM *)p_data->ble_cfg_filter_cond.p_cond_param, in bta_dm_cfg_filter_cond()
5169 bta_ble_scan_cfg_cmpl, p_data->ble_cfg_filter_cond.ref_value)) in bta_dm_cfg_filter_cond()
5172 bta_dm_cb.p_scan_filt_cfg_cback = p_data->ble_cfg_filter_cond.p_filt_cfg_cback; in bta_dm_cfg_filter_cond()
5177 if (p_data->ble_cfg_filter_cond.p_filt_cfg_cback) in bta_dm_cfg_filter_cond()
5178 p_data->ble_cfg_filter_cond.p_filt_cfg_cback(BTA_DM_BLE_PF_CONFIG_EVT, in bta_dm_cfg_filter_cond()
5179 p_data->ble_cfg_filter_cond.cond_type, 0, status, in bta_dm_cfg_filter_cond()
5180 p_data->ble_cfg_filter_cond.ref_value); in bta_dm_cfg_filter_cond()
5193 void bta_dm_enable_scan_filter(tBTA_DM_MSG *p_data) in bta_dm_enable_scan_filter() argument
5204 if((st = BTM_BleEnableDisableFilterFeature(p_data->ble_enable_scan_filt.action, in bta_dm_enable_scan_filter()
5205 p_data->ble_enable_scan_filt.p_filt_status_cback, in bta_dm_enable_scan_filter()
5206 (tBTM_BLE_REF_VALUE)p_data->ble_enable_scan_filt.ref_value)) == BTM_CMD_STARTED) in bta_dm_enable_scan_filter()
5207 bta_dm_cb.p_scan_filt_status_cback = p_data->ble_enable_scan_filt.p_filt_status_cback; in bta_dm_enable_scan_filter()
5211 if (p_data->ble_enable_scan_filt.p_filt_status_cback) in bta_dm_enable_scan_filter()
5212 p_data->ble_enable_scan_filt.p_filt_status_cback (BTA_DM_BLE_PF_ENABLE_EVT, in bta_dm_enable_scan_filter()
5213 p_data->ble_enable_scan_filt.ref_value, status); in bta_dm_enable_scan_filter()
5226 void bta_dm_scan_filter_param_setup (tBTA_DM_MSG *p_data) in bta_dm_scan_filter_param_setup() argument
5237 if ((st = BTM_BleAdvFilterParamSetup(p_data->ble_scan_filt_param_setup.action, in bta_dm_scan_filter_param_setup()
5238 p_data->ble_scan_filt_param_setup.filt_index, in bta_dm_scan_filter_param_setup()
5239 (tBTM_BLE_PF_FILT_PARAMS *)&p_data->ble_scan_filt_param_setup.filt_params, in bta_dm_scan_filter_param_setup()
5240 p_data->ble_scan_filt_param_setup.p_target, in bta_dm_scan_filter_param_setup()
5241 p_data->ble_scan_filt_param_setup.p_filt_param_cback, in bta_dm_scan_filter_param_setup()
5242 p_data->ble_scan_filt_param_setup.ref_value)) == BTM_CMD_STARTED) in bta_dm_scan_filter_param_setup()
5244 … bta_dm_cb.p_scan_filt_param_cback = p_data->ble_scan_filt_param_setup.p_filt_param_cback; in bta_dm_scan_filter_param_setup()
5249 if (p_data->ble_scan_filt_param_setup.p_filt_param_cback) in bta_dm_scan_filter_param_setup()
5250 p_data->ble_scan_filt_param_setup.p_filt_param_cback (BTA_DM_BLE_PF_ENABLE_EVT, 0, in bta_dm_scan_filter_param_setup()
5251 p_data->ble_scan_filt_param_setup.ref_value, status); in bta_dm_scan_filter_param_setup()
5292 void bta_dm_ble_get_energy_info(tBTA_DM_MSG *p_data) in bta_dm_ble_get_energy_info() argument
5296 bta_dm_cb.p_energy_info_cback = p_data->ble_energy_info.p_energy_info_cback; in bta_dm_ble_get_energy_info()
5480 void bta_dm_close_gatt_conn(tBTA_DM_MSG *p_data) in bta_dm_close_gatt_conn() argument
5482 UNUSED(p_data); in bta_dm_close_gatt_conn()
5544 void bta_dm_proc_open_evt(tBTA_GATTC_OPEN *p_data) in bta_dm_proc_open_evt() argument
5550 p2 = p_data->remote_bda; in bta_dm_proc_open_evt()
5560 p_data->conn_id, in bta_dm_proc_open_evt()
5561 p_data->client_if, in bta_dm_proc_open_evt()
5562 p_data->status); in bta_dm_proc_open_evt()
5564 bta_dm_search_cb.conn_id = p_data->conn_id; in bta_dm_proc_open_evt()
5566 if (p_data->status == BTA_GATT_OK) in bta_dm_proc_open_evt()
5568 btm_dm_start_disc_gatt_services(p_data->conn_id); in bta_dm_proc_open_evt()
5572 bta_dm_gatt_disc_complete(BTA_GATT_INVALID_CONN_ID, p_data->status); in bta_dm_proc_open_evt()
5585 static void bta_dm_gattc_callback(tBTA_GATTC_EVT event, tBTA_GATTC *p_data) in bta_dm_gattc_callback() argument
5592 APPL_TRACE_DEBUG("BTA_GATTC_REG_EVT client_if = %d", p_data->reg_oper.client_if); in bta_dm_gattc_callback()
5593 if (p_data->reg_oper.status == BTA_GATT_OK) in bta_dm_gattc_callback()
5594 bta_dm_search_cb.client_if = p_data->reg_oper.client_if; in bta_dm_gattc_callback()
5600 bta_dm_proc_open_evt(&p_data->open); in bta_dm_gattc_callback()
5604 bta_dm_gatt_disc_result(p_data->srvc_res.service_uuid); in bta_dm_gattc_callback()
5609 bta_dm_gatt_disc_complete(p_data->search_cmpl.conn_id, p_data->search_cmpl.status); in bta_dm_gattc_callback()
5613 APPL_TRACE_DEBUG("BTA_GATTC_CLOSE_EVT reason = %d", p_data->close.reason); in bta_dm_gattc_callback()
5617 !memcmp(p_data->close.remote_bda, bta_dm_search_cb.peer_bdaddr, BD_ADDR_LEN)) in bta_dm_gattc_callback()