Lines Matching refs:p_data

62 static void bta_dm_bl_change_cback (tBTM_BL_EVENT_DATA *p_data);
80 static UINT8 bta_dm_sp_cback (tBTM_SP_EVT event, tBTM_SP_EVT_DATA *p_data);
103 static UINT8 bta_dm_ble_smp_cback (tBTM_LE_EVT event, BD_ADDR bda, tBTM_LE_EVT_DATA *p_data);
110 static void bta_dm_gattc_callback(tBTA_GATTC_EVT event, tBTA_GATTC *p_data);
248 void bta_dm_enable(tBTA_DM_MSG *p_data) in bta_dm_enable() argument
259 if (p_data->enable.p_sec_cback != NULL) in bta_dm_enable()
260 p_data->enable.p_sec_cback(BTA_DM_ENABLE_EVT, (tBTA_DM_SEC *)&enable_event); in bta_dm_enable()
269 if( p_data->enable.p_sec_cback != NULL ) in bta_dm_enable()
270 bta_dm_cb.p_sec_cback = p_data->enable.p_sec_cback; in bta_dm_enable()
412 void bta_dm_disable (tBTA_DM_MSG *p_data) in bta_dm_disable() argument
414 UNUSED(p_data); in bta_dm_disable()
522 void bta_dm_set_dev_name (tBTA_DM_MSG *p_data) in bta_dm_set_dev_name() argument
525 BTM_SetLocalDeviceName((char*)p_data->set_name.name); in bta_dm_set_dev_name()
526 bta_dm_set_eir ((char*)p_data->set_name.name); in bta_dm_set_dev_name()
539 void bta_dm_set_visibility(tBTA_DM_MSG *p_data) in bta_dm_set_visibility() argument
548 if (p_data->set_visibility.disc_mode != (BTA_DM_IGNORE | BTA_DM_LE_IGNORE)) in bta_dm_set_visibility()
550 if ((p_data->set_visibility.disc_mode & BTA_DM_LE_IGNORE) == BTA_DM_LE_IGNORE) in bta_dm_set_visibility()
551 p_data->set_visibility.disc_mode = in bta_dm_set_visibility()
552 ((p_data->set_visibility.disc_mode & ~BTA_DM_LE_IGNORE) | le_disc_mode); in bta_dm_set_visibility()
554 if ((p_data->set_visibility.disc_mode & BTA_DM_IGNORE) == BTA_DM_IGNORE) in bta_dm_set_visibility()
555 p_data->set_visibility.disc_mode = in bta_dm_set_visibility()
556 ((p_data->set_visibility.disc_mode & ~BTA_DM_IGNORE) | disc_mode); in bta_dm_set_visibility()
558 BTM_SetDiscoverability(p_data->set_visibility.disc_mode, in bta_dm_set_visibility()
563 if (p_data->set_visibility.conn_mode != (BTA_DM_IGNORE | BTA_DM_LE_IGNORE)) in bta_dm_set_visibility()
565 if ((p_data->set_visibility.conn_mode & BTA_DM_LE_IGNORE) == BTA_DM_LE_IGNORE) in bta_dm_set_visibility()
566 p_data->set_visibility.conn_mode = in bta_dm_set_visibility()
567 ((p_data->set_visibility.conn_mode & ~BTA_DM_LE_IGNORE) | le_conn_mode); in bta_dm_set_visibility()
569 if ((p_data->set_visibility.conn_mode & BTA_DM_IGNORE) == BTA_DM_IGNORE) in bta_dm_set_visibility()
570 p_data->set_visibility.conn_mode = in bta_dm_set_visibility()
571 ((p_data->set_visibility.conn_mode & ~BTA_DM_IGNORE) | conn_mode); in bta_dm_set_visibility()
573 BTM_SetConnectability(p_data->set_visibility.conn_mode, in bta_dm_set_visibility()
579 if (p_data->set_visibility.pair_mode != BTA_DM_IGNORE ) in bta_dm_set_visibility()
582 if (p_data->set_visibility.pair_mode == BTA_DM_NON_PAIRABLE) in bta_dm_set_visibility()
590 if (p_data->set_visibility.conn_paired_only != BTA_DM_IGNORE) in bta_dm_set_visibility()
593 if (p_data->set_visibility.conn_paired_only == BTA_DM_CONN_ALL) in bta_dm_set_visibility()
601 …if (p_data->set_visibility.pair_mode != BTA_DM_IGNORE || p_data->set_visibility.conn_paired_only !… in bta_dm_set_visibility()
644 void bta_dm_remove_device(tBTA_DM_MSG *p_data) in bta_dm_remove_device() argument
646 tBTA_DM_API_REMOVE_DEVICE *p_dev = &p_data->remove_dev; in bta_dm_remove_device()
731 void bta_dm_add_device (tBTA_DM_MSG *p_data) in bta_dm_add_device() argument
733 tBTA_DM_API_ADD_DEVICE *p_dev = &p_data->add_dev; in bta_dm_add_device()
786 void bta_dm_close_acl(tBTA_DM_MSG *p_data) in bta_dm_close_acl() argument
788 tBTA_DM_API_REMOVE_ACL *p_remove_acl = &p_data->remove_acl; in bta_dm_close_acl()
837 void bta_dm_remove_all_acl(tBTA_DM_MSG *p_data) in bta_dm_remove_all_acl() argument
839 const tBTA_DM_LINK_TYPE link_type = p_data->remove_all_acl.link_type; in bta_dm_remove_all_acl()
872 void bta_dm_bond (tBTA_DM_MSG *p_data) in bta_dm_bond() argument
878 if (p_data->bond.transport == BTA_TRANSPORT_UNKNOWN) in bta_dm_bond()
879 status = BTM_SecBond ( p_data->bond.bd_addr, 0, NULL, 0 ); in bta_dm_bond()
881 … status = BTM_SecBondByTransport ( p_data->bond.bd_addr, p_data->bond.transport, 0, NULL, 0 ); in bta_dm_bond()
888 bdcpy(sec_event.auth_cmpl.bd_addr, p_data->bond.bd_addr); in bta_dm_bond()
889 p_name = BTM_SecReadDevName(p_data->bond.bd_addr); in bta_dm_bond()
908 bta_dm_remove_sec_dev_entry(p_data->bond.bd_addr); in bta_dm_bond()
925 void bta_dm_bond_cancel (tBTA_DM_MSG *p_data) in bta_dm_bond_cancel() argument
931 status = BTM_SecBondCancel ( p_data->bond_cancel.bd_addr ); in bta_dm_bond_cancel()
952 void bta_dm_pin_reply (tBTA_DM_MSG *p_data) in bta_dm_pin_reply() argument
957 current_trusted_mask = BTM_ReadTrustedMask(p_data->pin_reply.bd_addr); in bta_dm_pin_reply()
968 if(p_data->pin_reply.accept) in bta_dm_pin_reply()
971 …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()
975 BTM_PINCodeReply(p_data->pin_reply.bd_addr, BTM_NOT_AUTHORIZED, 0, NULL, trusted_mask ); in bta_dm_pin_reply()
1054 void bta_dm_confirm(tBTA_DM_MSG *p_data) in bta_dm_confirm() argument
1058 if(p_data->confirm.accept == TRUE) in bta_dm_confirm()
1060 BTM_ConfirmReqReply(res, p_data->confirm.bd_addr); in bta_dm_confirm()
1073 void bta_dm_loc_oob(tBTA_DM_MSG *p_data) in bta_dm_loc_oob() argument
1075 UNUSED(p_data); in bta_dm_loc_oob()
1088 void bta_dm_ci_io_req_act(tBTA_DM_MSG *p_data) in bta_dm_ci_io_req_act() argument
1091 if(p_data->ci_io_req.auth_req) in bta_dm_ci_io_req_act()
1093 BTM_IoCapRsp(p_data->ci_io_req.bd_addr, p_data->ci_io_req.io_cap, in bta_dm_ci_io_req_act()
1094 p_data->ci_io_req.oob_data, auth_req); in bta_dm_ci_io_req_act()
1107 void bta_dm_ci_rmt_oob_act(tBTA_DM_MSG *p_data) in bta_dm_ci_rmt_oob_act() argument
1111 if(p_data->ci_rmt_oob.accept == TRUE) in bta_dm_ci_rmt_oob_act()
1113 BTM_RemoteOobDataReply(res, p_data->ci_rmt_oob.bd_addr, in bta_dm_ci_rmt_oob_act()
1114 p_data->ci_rmt_oob.c, p_data->ci_rmt_oob.r ); in bta_dm_ci_rmt_oob_act()
1128 void bta_dm_search_start (tBTA_DM_MSG *p_data) in bta_dm_search_start() argument
1133 UINT16 len = (UINT16)(sizeof(tBT_UUID) * p_data->search.num_uuid); in bta_dm_search_start()
1140 (p_data->search.rs_res == BTA_DM_RS_NONE) && bta_dm_check_av(BTA_DM_API_SEARCH_EVT)) in bta_dm_search_start()
1142 memcpy(&bta_dm_cb.search_msg, &p_data->search, sizeof(tBTA_DM_API_SEARCH)); in bta_dm_search_start()
1148 bta_dm_search_cb.p_search_cback = p_data->search.p_cback; in bta_dm_search_start()
1149 bta_dm_search_cb.services = p_data->search.services; in bta_dm_search_start()
1154 if ((bta_dm_search_cb.num_uuid = p_data->search.num_uuid) != 0 && in bta_dm_search_start()
1155 p_data->search.p_uuid != NULL) in bta_dm_search_start()
1167 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->search.p_uuid, len); in bta_dm_search_start()
1170 result.status = BTM_StartInquiry( (tBTM_INQ_PARMS*)&p_data->search.inq_params, in bta_dm_search_start()
1192 void bta_dm_search_cancel (tBTA_DM_MSG *p_data) in bta_dm_search_cancel() argument
1194 UNUSED(p_data); in bta_dm_search_cancel()
1254 void bta_dm_discover (tBTA_DM_MSG *p_data) in bta_dm_discover() argument
1257 UINT16 len = (UINT16)(sizeof(tBT_UUID) * p_data->discover.num_uuid); in bta_dm_discover()
1260 p_data->discover.services, p_data->discover.sdp_search); in bta_dm_discover()
1263 bta_dm_search_cb.services = p_data->discover.services; in bta_dm_discover()
1268 if ((bta_dm_search_cb.num_uuid = p_data->discover.num_uuid) != 0 && in bta_dm_discover()
1269 p_data->discover.p_uuid != NULL) in bta_dm_discover()
1273 p_data->discover.p_cback(BTA_DM_DISC_CMPL_EVT, NULL); in bta_dm_discover()
1276 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->discover.p_uuid, len); in bta_dm_discover()
1281 bta_dm_search_cb.p_search_cback = p_data->discover.p_cback; in bta_dm_discover()
1282 bta_dm_search_cb.sdp_search = p_data->discover.sdp_search; in bta_dm_discover()
1287 bta_dm_search_cb.sdp_search = p_data->discover.sdp_search; in bta_dm_discover()
1288 bta_dm_search_cb.p_btm_inq_info = BTM_InqDbRead (p_data->discover.bd_addr); in bta_dm_discover()
1289 bta_dm_search_cb.transport = p_data->discover.transport; in bta_dm_discover()
1292 memcpy(&bta_dm_search_cb.uuid, &p_data->discover.uuid, sizeof(tSDP_UUID)); in bta_dm_discover()
1293 bta_dm_discover_device(p_data->discover.bd_addr); in bta_dm_discover()
1305 void bta_dm_di_disc_cmpl(tBTA_DM_MSG *p_data) in bta_dm_di_disc_cmpl() argument
1312 if((p_data->hdr.offset == SDP_SUCCESS) in bta_dm_di_disc_cmpl()
1313 || (p_data->hdr.offset == SDP_DB_FULL)) in bta_dm_di_disc_cmpl()
1386 void bta_dm_di_disc (tBTA_DM_MSG *p_data) in bta_dm_di_disc() argument
1391 bta_dm_search_cb.p_search_cback = p_data->di_disc.p_cback; in bta_dm_di_disc()
1392 bdcpy(bta_dm_search_cb.peer_bdaddr, p_data->di_disc.bd_addr); in bta_dm_di_disc()
1393 bta_dm_di_cb.p_di_db = p_data->di_disc.p_sdp_db; in bta_dm_di_disc()
1397 if ( SDP_DiDiscover(bta_dm_search_cb.peer_bdaddr, p_data->di_disc.p_sdp_db, in bta_dm_di_disc()
1398 p_data->di_disc.len, bta_dm_di_disc_callback) == SDP_SUCCESS) in bta_dm_di_disc()
1413 p_data->hdr.offset = result; in bta_dm_di_disc()
1473 void bta_dm_inq_cmpl (tBTA_DM_MSG *p_data) in bta_dm_inq_cmpl() argument
1480 data.inq_cmpl.num_resps = p_data->inq_cmpl.num; in bta_dm_inq_cmpl()
1513 void bta_dm_rmt_name (tBTA_DM_MSG *p_data) in bta_dm_rmt_name() argument
1517 if( p_data->rem_name.result.disc_res.bd_name[0] && bta_dm_search_cb.p_btm_inq_info) in bta_dm_rmt_name()
1535 void bta_dm_disc_rmt_name (tBTA_DM_MSG *p_data) in bta_dm_disc_rmt_name() argument
1541 p_btm_inq_info = BTM_InqDbRead (p_data->rem_name.result.disc_res.bd_addr); in bta_dm_disc_rmt_name()
1544 if( p_data->rem_name.result.disc_res.bd_name[0] ) in bta_dm_disc_rmt_name()
1550 bta_dm_discover_device(p_data->rem_name.result.disc_res.bd_addr); in bta_dm_disc_rmt_name()
1562 void bta_dm_sdp_result (tBTA_DM_MSG *p_data) in bta_dm_sdp_result() argument
1580 if((p_data->sdp_event.sdp_result == SDP_SUCCESS) in bta_dm_sdp_result()
1581 || (p_data->sdp_event.sdp_result == SDP_NO_RECS_MATCH) in bta_dm_sdp_result()
1582 || (p_data->sdp_event.sdp_result == SDP_DB_FULL)) in bta_dm_sdp_result()
1584 APPL_TRACE_DEBUG("sdp_result::0x%x", p_data->sdp_event.sdp_result); in bta_dm_sdp_result()
1646 if (((p_data->sdp_event.sdp_result == SDP_DB_FULL) && in bta_dm_sdp_result()
1795 …if(p_data->sdp_event.sdp_result == SDP_CONN_FAILED || p_data->sdp_event.sdp_result == SDP_CONN_REJ… in bta_dm_sdp_result()
1796 || p_data->sdp_event.sdp_result == SDP_SECURITY_ERR) in bta_dm_sdp_result()
1831 void bta_dm_search_cmpl (tBTA_DM_MSG *p_data) in bta_dm_search_cmpl() argument
1839 if (p_data->hdr.layer_specific == BTA_DM_API_DI_DISCOVER_EVT) in bta_dm_search_cmpl()
1840 bta_dm_di_disc_cmpl(p_data); in bta_dm_search_cmpl()
1854 void bta_dm_disc_result (tBTA_DM_MSG *p_data) in bta_dm_disc_result() argument
1862 bta_dm_search_cb.p_search_cback(BTA_DM_DISC_RES_EVT, &p_data->disc_result.result); in bta_dm_disc_result()
1884 void bta_dm_search_result (tBTA_DM_MSG *p_data) in bta_dm_search_result() argument
1888 p_data->disc_result.result.disc_res.services); in bta_dm_search_result()
1892 ||(( bta_dm_search_cb.services ) && ( p_data->disc_result.result.disc_res.services ))) in bta_dm_search_result()
1894 bta_dm_search_cb.p_search_cback(BTA_DM_DISC_RES_EVT, &p_data->disc_result.result); in bta_dm_search_result()
1946 void bta_dm_free_sdp_db (tBTA_DM_MSG *p_data) in bta_dm_free_sdp_db() argument
1948 UNUSED(p_data); in bta_dm_free_sdp_db()
1966 void bta_dm_queue_search (tBTA_DM_MSG *p_data) in bta_dm_queue_search() argument
1974 memcpy(bta_dm_search_cb.p_search_queue, p_data, sizeof(tBTA_DM_API_SEARCH)); in bta_dm_queue_search()
1987 void bta_dm_queue_disc (tBTA_DM_MSG *p_data) in bta_dm_queue_disc() argument
1995 memcpy(bta_dm_search_cb.p_search_queue, p_data, sizeof(tBTA_DM_API_DISCOVER)); in bta_dm_queue_disc()
2008 void bta_dm_search_clear_queue (tBTA_DM_MSG *p_data) in bta_dm_search_clear_queue() argument
2010 UNUSED(p_data); in bta_dm_search_clear_queue()
2027 void bta_dm_search_cancel_cmpl (tBTA_DM_MSG *p_data) in bta_dm_search_cancel_cmpl() argument
2029 UNUSED(p_data); in bta_dm_search_cancel_cmpl()
2048 void bta_dm_search_cancel_transac_cmpl(tBTA_DM_MSG *p_data) in bta_dm_search_cancel_transac_cmpl() argument
2050 UNUSED(p_data); in bta_dm_search_cancel_transac_cmpl()
2070 void bta_dm_search_cancel_notify (tBTA_DM_MSG *p_data) in bta_dm_search_cancel_notify() argument
2072 UNUSED(p_data); in bta_dm_search_cancel_notify()
2709 static void bta_dm_pinname_cback (void *p_data) in bta_dm_pinname_cback() argument
2711 tBTM_REMOTE_DEV_NAME *p_result = (tBTM_REMOTE_DEV_NAME *)p_data; in bta_dm_pinname_cback()
2899 static UINT8 bta_dm_sp_cback (tBTM_SP_EVT event, tBTM_SP_EVT_DATA *p_data) in bta_dm_sp_cback() argument
2915 bta_dm_co_io_req(p_data->io_req.bd_addr, &p_data->io_req.io_cap, in bta_dm_sp_cback()
2916 &p_data->io_req.oob_data, &p_data->io_req.auth_req, p_data->io_req.is_orig); in bta_dm_sp_cback()
2922 … 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()
2926 bta_dm_co_io_rsp(p_data->io_rsp.bd_addr, p_data->io_rsp.io_cap, in bta_dm_sp_cback()
2927 p_data->io_rsp.oob_data, p_data->io_rsp.auth_req ); in bta_dm_sp_cback()
2933 bta_dm_cb.just_works = sec_event.cfm_req.just_works = p_data->cfm_req.just_works; in bta_dm_sp_cback()
2934 sec_event.cfm_req.loc_auth_req = p_data->cfm_req.loc_auth_req; in bta_dm_sp_cback()
2935 sec_event.cfm_req.rmt_auth_req = p_data->cfm_req.rmt_auth_req; in bta_dm_sp_cback()
2936 sec_event.cfm_req.loc_io_caps = p_data->cfm_req.loc_io_caps; in bta_dm_sp_cback()
2937 sec_event.cfm_req.rmt_io_caps = p_data->cfm_req.rmt_io_caps; in bta_dm_sp_cback()
2950 if(p_data->cfm_req.bd_name[0] == 0) in bta_dm_sp_cback()
2953 bdcpy(bta_dm_cb.pin_bd_addr, p_data->cfm_req.bd_addr); in bta_dm_sp_cback()
2954 BTA_COPY_DEVICE_CLASS(bta_dm_cb.pin_dev_class, p_data->cfm_req.dev_class); in bta_dm_sp_cback()
2955 if ((BTM_ReadRemoteDeviceName(p_data->cfm_req.bd_addr, bta_dm_pinname_cback, in bta_dm_sp_cback()
2964 bdcpy(sec_event.key_notif.bd_addr, p_data->cfm_req.bd_addr); in bta_dm_sp_cback()
2965 BTA_COPY_DEVICE_CLASS(sec_event.key_notif.dev_class, p_data->cfm_req.dev_class); in bta_dm_sp_cback()
2967 (char*)p_data->cfm_req.bd_name, (BD_NAME_LEN-1)); in bta_dm_sp_cback()
2972 bta_dm_cb.num_val = sec_event.key_notif.passkey = p_data->key_notif.passkey; in bta_dm_sp_cback()
2977 if(p_data->key_notif.bd_name[0] == 0) in bta_dm_sp_cback()
2980 bdcpy(bta_dm_cb.pin_bd_addr, p_data->key_notif.bd_addr); in bta_dm_sp_cback()
2981 BTA_COPY_DEVICE_CLASS(bta_dm_cb.pin_dev_class, p_data->key_notif.dev_class); in bta_dm_sp_cback()
2982 if ((BTM_ReadRemoteDeviceName(p_data->key_notif.bd_addr, bta_dm_pinname_cback, in bta_dm_sp_cback()
2989 bdcpy(sec_event.key_notif.bd_addr, p_data->key_notif.bd_addr); in bta_dm_sp_cback()
2990 BTA_COPY_DEVICE_CLASS(sec_event.key_notif.dev_class, p_data->key_notif.dev_class); in bta_dm_sp_cback()
2992 (char*)p_data->key_notif.bd_name, (BD_NAME_LEN-1)); in bta_dm_sp_cback()
3003 bta_dm_co_loc_oob((BOOLEAN)(p_data->loc_oob.status == BTM_SUCCESS), in bta_dm_sp_cback()
3004 p_data->loc_oob.c, p_data->loc_oob.r); in bta_dm_sp_cback()
3009 if (p_data->rmt_oob.bd_name[0] == 0) in bta_dm_sp_cback()
3012 bdcpy(bta_dm_cb.pin_bd_addr, p_data->rmt_oob.bd_addr); in bta_dm_sp_cback()
3013 BTA_COPY_DEVICE_CLASS(bta_dm_cb.pin_dev_class, p_data->rmt_oob.dev_class); in bta_dm_sp_cback()
3014 if ((BTM_ReadRemoteDeviceName(p_data->rmt_oob.bd_addr, bta_dm_pinname_cback, in bta_dm_sp_cback()
3020 bdcpy(sec_event.rmt_oob.bd_addr, p_data->rmt_oob.bd_addr); in bta_dm_sp_cback()
3021 BTA_COPY_DEVICE_CLASS(sec_event.rmt_oob.dev_class, p_data->rmt_oob.dev_class); in bta_dm_sp_cback()
3022 …BCM_STRNCPY_S((char*)sec_event.rmt_oob.bd_name, sizeof(BD_NAME), (char*)p_data->rmt_oob.bd_name, (… in bta_dm_sp_cback()
3027 bta_dm_co_rmt_oob(p_data->rmt_oob.bd_addr); in bta_dm_sp_cback()
3035 memcpy(&sec_event.key_press, &p_data->key_press, sizeof(tBTM_SP_KEYPRESS)); in bta_dm_sp_cback()
3040 bta_dm_co_lk_upgrade(p_data->upgrade.bd_addr, &p_data->upgrade.upgrade ); in bta_dm_sp_cback()
3083 static void bta_dm_bl_change_cback (tBTM_BL_EVENT_DATA *p_data) in bta_dm_bl_change_cback() argument
3089 p_msg->event = p_data->event; in bta_dm_bl_change_cback()
3096 bdcpy(p_msg->bd_addr, p_data->conn.p_bda); in bta_dm_bl_change_cback()
3098 p_msg->transport = p_data->conn.transport; in bta_dm_bl_change_cback()
3099 p_msg->handle = p_data->conn.handle; in bta_dm_bl_change_cback()
3103 bdcpy(p_msg->bd_addr, p_data->discn.p_bda); in bta_dm_bl_change_cback()
3105 p_msg->transport = p_data->discn.transport; in bta_dm_bl_change_cback()
3106 p_msg->handle = p_data->discn.handle; in bta_dm_bl_change_cback()
3110 p_msg->busy_level = p_data->update.busy_level; in bta_dm_bl_change_cback()
3111 p_msg->busy_level_flags = p_data->update.busy_level_flags; in bta_dm_bl_change_cback()
3114 p_msg->new_role = p_data->role_chg.new_role; in bta_dm_bl_change_cback()
3115 p_msg->hci_status = p_data->role_chg.hci_status; in bta_dm_bl_change_cback()
3116 bdcpy(p_msg->bd_addr, p_data->role_chg.p_bda); in bta_dm_bl_change_cback()
3119 bdcpy(p_msg->bd_addr, p_data->conn.p_bda); in bta_dm_bl_change_cback()
3258 void bta_dm_acl_change(tBTA_DM_MSG *p_data) in bta_dm_acl_change() argument
3264 BOOLEAN is_new = p_data->acl_change.is_new; in bta_dm_acl_change()
3265 BD_ADDR_PTR p_bda = p_data->acl_change.bd_addr; in bta_dm_acl_change()
3272 switch(p_data->acl_change.event) in bta_dm_acl_change()
3277 conn.busy_level.level = p_data->acl_change.busy_level; in bta_dm_acl_change()
3278 conn.busy_level.level_flags = p_data->acl_change.busy_level_flags; in bta_dm_acl_change()
3288 p_dev->info, p_data->acl_change.new_role, bta_dm_cb.device_list.count); in bta_dm_acl_change()
3292 if(p_data->acl_change.new_role == HCI_ROLE_SLAVE && bta_dm_cb.device_list.count > 1 in bta_dm_acl_change()
3293 && p_data->acl_change.hci_status == HCI_SUCCESS) in bta_dm_acl_change()
3300 … else if (p_bta_dm_cfg->avoid_scatter && (p_data->acl_change.new_role == HCI_ROLE_MASTER)) in bta_dm_acl_change()
3318 …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()
3320 conn.role_chg.new_role = (UINT8) p_data->acl_change.new_role; in bta_dm_acl_change()
3328 if (p_data->acl_change.event == BTM_BL_COLLISION_EVT) in bta_dm_acl_change()
3340 && bta_dm_cb.device_list.peer_device[i].conn_handle == p_data->acl_change.handle in bta_dm_acl_change()
3355 bta_dm_cb.device_list.peer_device[i].conn_handle = p_data->acl_change.handle; in bta_dm_acl_change()
3356 if (p_data->acl_change.transport == BT_TRANSPORT_LE) in bta_dm_acl_change()
3370 conn.link_up.link_type = p_data->acl_change.transport; in bta_dm_acl_change()
3371 bta_dm_cb.device_list.peer_device[i].transport = p_data->acl_change.transport; in bta_dm_acl_change()
3389 ||bta_dm_cb.device_list.peer_device[i].transport != p_data->acl_change.transport in bta_dm_acl_change()
3413 if ((p_data->acl_change.transport == BT_TRANSPORT_LE) && in bta_dm_acl_change()
3416 conn.link_down.link_type = p_data->acl_change.transport; in bta_dm_acl_change()
4183 void bta_dm_enable_test_mode(tBTA_DM_MSG *p_data) in bta_dm_enable_test_mode() argument
4185 UNUSED(p_data); in bta_dm_enable_test_mode()
4199 void bta_dm_disable_test_mode(tBTA_DM_MSG *p_data) in bta_dm_disable_test_mode() argument
4201 UNUSED(p_data); in bta_dm_disable_test_mode()
4215 void bta_dm_execute_callback(tBTA_DM_MSG *p_data) in bta_dm_execute_callback() argument
4218 if(p_data->exec_cback.p_exec_cback == NULL) in bta_dm_execute_callback()
4223 p_data->exec_cback.p_exec_cback(p_data->exec_cback.p_param); in bta_dm_execute_callback()
4290 void bta_dm_set_encryption (tBTA_DM_MSG *p_data) in bta_dm_set_encryption() argument
4295 if (!p_data->set_encryption.p_callback) in bta_dm_set_encryption()
4302 …if (bdcmp( bta_dm_cb.device_list.peer_device[i].peer_bdaddr, p_data->set_encryption.bd_addr) == 0 … in bta_dm_set_encryption()
4311 (*p_data->set_encryption.p_callback)(p_data->set_encryption.bd_addr, in bta_dm_set_encryption()
4312 p_data->set_encryption.transport, in bta_dm_set_encryption()
4317 if (BTM_SetEncryption(p_data->set_encryption.bd_addr, p_data->set_encryption.transport, in bta_dm_set_encryption()
4318 bta_dm_encrypt_cback, &p_data->set_encryption.sec_act) in bta_dm_set_encryption()
4321 … bta_dm_cb.device_list.peer_device[i].p_encrypt_cback = p_data->set_encryption.p_callback; in bta_dm_set_encryption()
4406 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
4424 &p_data->io_req.io_cap, in bta_dm_ble_smp_cback()
4425 &p_data->io_req.oob_data, in bta_dm_ble_smp_cback()
4426 &p_data->io_req.auth_req, in bta_dm_ble_smp_cback()
4427 &p_data->io_req.max_key_size, in bta_dm_ble_smp_cback()
4428 &p_data->io_req.init_keys, in bta_dm_ble_smp_cback()
4429 &p_data->io_req.resp_keys); in bta_dm_ble_smp_cback()
4434 … 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()
4467 sec_event.key_notif.passkey = p_data->key_notif; in bta_dm_ble_smp_cback()
4485 sec_event.key_notif.passkey = p_data->key_notif; in bta_dm_ble_smp_cback()
4491 sec_event.ble_key.key_type = p_data->key.key_type; in bta_dm_ble_smp_cback()
4492 sec_event.ble_key.p_key_value = p_data->key.p_key_value; in bta_dm_ble_smp_cback()
4511 if (p_data->complt.reason != 0) in bta_dm_ble_smp_cback()
4513 … sec_event.auth_cmpl.fail_reason = BTA_DM_AUTH_CONVERT_SMP_CODE(((UINT8)p_data->complt.reason)); in bta_dm_ble_smp_cback()
4520 if (!p_data->complt.smp_over_br) in bta_dm_ble_smp_cback()
4589 void bta_dm_add_blekey (tBTA_DM_MSG *p_data) in bta_dm_add_blekey() argument
4591 if (!BTM_SecAddBleKey (p_data->add_ble_key.bd_addr, in bta_dm_add_blekey()
4592 (tBTM_LE_KEY_VALUE *)&p_data->add_ble_key.blekey, in bta_dm_add_blekey()
4593 p_data->add_ble_key.key_type)) in bta_dm_add_blekey()
4596 … (p_data->add_ble_key.bd_addr[0]<<24)+(p_data->add_ble_key.bd_addr[1]<<16)+\ in bta_dm_add_blekey()
4597 (p_data->add_ble_key.bd_addr[2]<<8)+p_data->add_ble_key.bd_addr[3], in bta_dm_add_blekey()
4598 (p_data->add_ble_key.bd_addr[4]<<8)+p_data->add_ble_key.bd_addr[5]); in bta_dm_add_blekey()
4613 void bta_dm_add_ble_device (tBTA_DM_MSG *p_data) in bta_dm_add_ble_device() argument
4615 if (!BTM_SecAddBleDevice (p_data->add_ble_device.bd_addr, NULL, in bta_dm_add_ble_device()
4616 p_data->add_ble_device.dev_type , in bta_dm_add_ble_device()
4617 p_data->add_ble_device.addr_type)) in bta_dm_add_ble_device()
4620 … (p_data->add_ble_device.bd_addr[0]<<24)+(p_data->add_ble_device.bd_addr[1]<<16)+ \ in bta_dm_add_ble_device()
4621 (p_data->add_ble_device.bd_addr[2]<<8)+p_data->add_ble_device.bd_addr[3], in bta_dm_add_ble_device()
4622 … (p_data->add_ble_device.bd_addr[4]<<8)+p_data->add_ble_device.bd_addr[5]); in bta_dm_add_ble_device()
4637 void bta_dm_ble_passkey_reply (tBTA_DM_MSG *p_data) in bta_dm_ble_passkey_reply() argument
4639 if (p_data->pin_reply.accept) in bta_dm_ble_passkey_reply()
4641 …BTM_BlePasskeyReply(p_data->ble_passkey_reply.bd_addr, BTM_SUCCESS, p_data->ble_passkey_reply.pass… in bta_dm_ble_passkey_reply()
4645 …BTM_BlePasskeyReply(p_data->ble_passkey_reply.bd_addr, BTM_NOT_AUTHORIZED, p_data->ble_passkey_rep… in bta_dm_ble_passkey_reply()
4660 void bta_dm_ble_confirm_reply (tBTA_DM_MSG *p_data) in bta_dm_ble_confirm_reply() argument
4662 if (p_data->confirm.accept) in bta_dm_ble_confirm_reply()
4664 BTM_BleConfirmReply(p_data->confirm.bd_addr, BTM_SUCCESS); in bta_dm_ble_confirm_reply()
4668 BTM_BleConfirmReply(p_data->ble_passkey_reply.bd_addr, BTM_NOT_AUTHORIZED); in bta_dm_ble_confirm_reply()
4681 void bta_dm_security_grant (tBTA_DM_MSG *p_data) in bta_dm_security_grant() argument
4683 BTM_SecurityGrant(p_data->ble_sec_grant.bd_addr, p_data->ble_sec_grant.res); in bta_dm_security_grant()
4695 void bta_dm_ble_set_bg_conn_type (tBTA_DM_MSG *p_data) in bta_dm_ble_set_bg_conn_type() argument
4697 BTM_BleSetBgConnType(p_data->ble_set_bd_conn_type.bg_conn_type, in bta_dm_ble_set_bg_conn_type()
4698 p_data->ble_set_bd_conn_type.p_select_cback); in bta_dm_ble_set_bg_conn_type()
4710 void bta_dm_ble_set_conn_params (tBTA_DM_MSG *p_data) in bta_dm_ble_set_conn_params() argument
4712 BTM_BleSetPrefConnParams(p_data->ble_set_conn_params.peer_bda, in bta_dm_ble_set_conn_params()
4713 p_data->ble_set_conn_params.conn_int_min, in bta_dm_ble_set_conn_params()
4714 p_data->ble_set_conn_params.conn_int_max, in bta_dm_ble_set_conn_params()
4715 p_data->ble_set_conn_params.slave_latency, in bta_dm_ble_set_conn_params()
4716 p_data->ble_set_conn_params.supervision_tout); in bta_dm_ble_set_conn_params()
4728 void bta_dm_ble_set_scan_params(tBTA_DM_MSG *p_data) in bta_dm_ble_set_scan_params() argument
4730 BTM_BleSetScanParams(p_data->ble_set_scan_params.client_if, in bta_dm_ble_set_scan_params()
4731 p_data->ble_set_scan_params.scan_int, in bta_dm_ble_set_scan_params()
4732 p_data->ble_set_scan_params.scan_window, in bta_dm_ble_set_scan_params()
4733 p_data->ble_set_scan_params.scan_mode, in bta_dm_ble_set_scan_params()
4734 p_data->ble_set_scan_params.scan_param_setup_cback); in bta_dm_ble_set_scan_params()
4746 void bta_dm_ble_set_conn_scan_params (tBTA_DM_MSG *p_data) in bta_dm_ble_set_conn_scan_params() argument
4748 BTM_BleSetConnScanParams(p_data->ble_set_conn_scan_params.scan_int, in bta_dm_ble_set_conn_scan_params()
4749 p_data->ble_set_conn_scan_params.scan_window); in bta_dm_ble_set_conn_scan_params()
4760 void bta_dm_ble_update_conn_params (tBTA_DM_MSG *p_data) in bta_dm_ble_update_conn_params() argument
4762 if (!L2CA_UpdateBleConnParams(p_data->ble_update_conn_params.bd_addr, in bta_dm_ble_update_conn_params()
4763 p_data->ble_update_conn_params.min_int, in bta_dm_ble_update_conn_params()
4764 p_data->ble_update_conn_params.max_int, in bta_dm_ble_update_conn_params()
4765 p_data->ble_update_conn_params.latency, in bta_dm_ble_update_conn_params()
4766 p_data->ble_update_conn_params.timeout)) in bta_dm_ble_update_conn_params()
4782 void bta_dm_ble_config_local_privacy (tBTA_DM_MSG *p_data) in bta_dm_ble_config_local_privacy() argument
4784 BTM_BleConfigPrivacy (p_data->ble_local_privacy.privacy_enable); in bta_dm_ble_config_local_privacy()
4797 void bta_dm_ble_observe (tBTA_DM_MSG *p_data) in bta_dm_ble_observe() argument
4800 if (p_data->ble_observe.start) in bta_dm_ble_observe()
4803 bta_dm_search_cb.p_scan_cback = p_data->ble_observe.p_cback; in bta_dm_ble_observe()
4804 if ((status = BTM_BleObserve(TRUE, p_data->ble_observe.duration, in bta_dm_ble_observe()
4831 void bta_dm_ble_set_adv_params (tBTA_DM_MSG *p_data) in bta_dm_ble_set_adv_params() argument
4833 BTM_BleSetAdvParams(p_data->ble_set_adv_params.adv_int_min, in bta_dm_ble_set_adv_params()
4834 p_data->ble_set_adv_params.adv_int_max, in bta_dm_ble_set_adv_params()
4835 p_data->ble_set_adv_params.p_dir_bda, in bta_dm_ble_set_adv_params()
4848 void bta_dm_ble_set_adv_config (tBTA_DM_MSG *p_data) in bta_dm_ble_set_adv_config() argument
4852 if (BTM_BleWriteAdvData(p_data->ble_set_adv_data.data_mask, in bta_dm_ble_set_adv_config()
4853 (tBTM_BLE_ADV_DATA *)p_data->ble_set_adv_data.p_adv_cfg) == BTM_SUCCESS) in bta_dm_ble_set_adv_config()
4858 if (p_data->ble_set_adv_data.p_adv_data_cback) in bta_dm_ble_set_adv_config()
4859 (*p_data->ble_set_adv_data.p_adv_data_cback)(status); in bta_dm_ble_set_adv_config()
4871 void bta_dm_ble_set_scan_rsp (tBTA_DM_MSG *p_data) in bta_dm_ble_set_scan_rsp() argument
4875 if(BTM_BleWriteScanRsp(p_data->ble_set_adv_data.data_mask, in bta_dm_ble_set_scan_rsp()
4876 (tBTM_BLE_ADV_DATA *)p_data->ble_set_adv_data.p_adv_cfg) == BTM_SUCCESS) in bta_dm_ble_set_scan_rsp()
4881 if (p_data->ble_set_adv_data.p_adv_data_cback) in bta_dm_ble_set_scan_rsp()
4882 (*p_data->ble_set_adv_data.p_adv_data_cback)(status); in bta_dm_ble_set_scan_rsp()
4894 void bta_dm_ble_set_data_length(tBTA_DM_MSG *p_data) in bta_dm_ble_set_data_length() argument
4896 if (BTM_SetBleDataLength(p_data->ble_set_data_length.remote_bda, in bta_dm_ble_set_data_length()
4897 p_data->ble_set_data_length.tx_data_length) != BTM_SUCCESS) in bta_dm_ble_set_data_length()
4912 void bta_dm_ble_broadcast (tBTA_DM_MSG *p_data) in bta_dm_ble_broadcast() argument
4914 BTM_BleBroadcast(p_data->ble_observe.start); in bta_dm_ble_broadcast()
4926 void bta_dm_ble_multi_adv_enb(tBTA_DM_MSG *p_data) in bta_dm_ble_multi_adv_enb() argument
4930 bta_dm_cb.p_multi_adv_cback = p_data->ble_multi_adv_enb.p_cback; in bta_dm_ble_multi_adv_enb()
4931 if(BTM_BleMaxMultiAdvInstanceCount() > 0 && NULL != p_data->ble_multi_adv_enb.p_ref) in bta_dm_ble_multi_adv_enb()
4934 p_data->ble_multi_adv_enb.p_params, in bta_dm_ble_multi_adv_enb()
4935 p_data->ble_multi_adv_enb.p_cback, in bta_dm_ble_multi_adv_enb()
4936 p_data->ble_multi_adv_enb.p_ref); in bta_dm_ble_multi_adv_enb()
4942 p_data->ble_multi_adv_enb.p_ref, BTA_FAILURE); in bta_dm_ble_multi_adv_enb()
4954 void bta_dm_ble_multi_adv_upd_param(tBTA_DM_MSG *p_data) in bta_dm_ble_multi_adv_upd_param() argument
4959 if(BTM_BleMaxMultiAdvInstanceCount() > 0 && p_data->ble_multi_adv_param.inst_id > 0 in bta_dm_ble_multi_adv_upd_param()
4960 && p_data->ble_multi_adv_param.inst_id < BTM_BleMaxMultiAdvInstanceCount()) in bta_dm_ble_multi_adv_upd_param()
4962 btm_status = BTM_BleUpdateAdvInstParam(p_data->ble_multi_adv_param.inst_id, in bta_dm_ble_multi_adv_upd_param()
4963 (tBTM_BLE_ADV_PARAMS*)p_data->ble_multi_adv_param.p_params); in bta_dm_ble_multi_adv_upd_param()
4968 p_ref = btm_ble_multi_adv_get_ref(p_data->ble_multi_adv_param.inst_id); in bta_dm_ble_multi_adv_upd_param()
4970 p_data->ble_multi_adv_param.inst_id, p_ref, BTA_FAILURE); in bta_dm_ble_multi_adv_upd_param()
4983 void bta_dm_ble_multi_adv_data(tBTA_DM_MSG *p_data) in bta_dm_ble_multi_adv_data() argument
4988 if(BTM_BleMaxMultiAdvInstanceCount() > 0 && p_data->ble_multi_adv_data.inst_id > 0 in bta_dm_ble_multi_adv_data()
4989 && p_data->ble_multi_adv_data.inst_id < BTM_BleMaxMultiAdvInstanceCount()) in bta_dm_ble_multi_adv_data()
4991 btm_status = BTM_BleCfgAdvInstData(p_data->ble_multi_adv_data.inst_id, in bta_dm_ble_multi_adv_data()
4992 p_data->ble_multi_adv_data.is_scan_rsp, in bta_dm_ble_multi_adv_data()
4993 p_data->ble_multi_adv_data.data_mask, in bta_dm_ble_multi_adv_data()
4994 (tBTM_BLE_ADV_DATA*)p_data->ble_multi_adv_data.p_data); in bta_dm_ble_multi_adv_data()
4999 p_ref = btm_ble_multi_adv_get_ref(p_data->ble_multi_adv_data.inst_id); in bta_dm_ble_multi_adv_data()
5001 p_data->ble_multi_adv_data.inst_id, p_ref, BTA_FAILURE); in bta_dm_ble_multi_adv_data()
5014 void btm_dm_ble_multi_adv_disable(tBTA_DM_MSG *p_data) in btm_dm_ble_multi_adv_disable() argument
5019 if(BTM_BleMaxMultiAdvInstanceCount() > 0 && p_data->ble_multi_adv_disable.inst_id > 0 in btm_dm_ble_multi_adv_disable()
5020 && p_data->ble_multi_adv_disable.inst_id < BTM_BleMaxMultiAdvInstanceCount()) in btm_dm_ble_multi_adv_disable()
5022 btm_status = BTM_BleDisableAdvInstance(p_data->ble_multi_adv_disable.inst_id); in btm_dm_ble_multi_adv_disable()
5027 p_ref = btm_ble_multi_adv_get_ref(p_data->ble_multi_adv_disable.inst_id); in btm_dm_ble_multi_adv_disable()
5029 p_data->ble_multi_adv_disable.inst_id, p_ref, BTA_FAILURE); in btm_dm_ble_multi_adv_disable()
5042 void bta_dm_ble_setup_storage (tBTA_DM_MSG *p_data) in bta_dm_ble_setup_storage() argument
5051 btm_status = BTM_BleSetStorageConfig(p_data->ble_set_storage.batch_scan_full_max, in bta_dm_ble_setup_storage()
5052 p_data->ble_set_storage.batch_scan_trunc_max, in bta_dm_ble_setup_storage()
5053 p_data->ble_set_storage.batch_scan_notify_threshold, in bta_dm_ble_setup_storage()
5054 p_data->ble_set_storage.p_setup_cback, in bta_dm_ble_setup_storage()
5055 p_data->ble_set_storage.p_thres_cback, in bta_dm_ble_setup_storage()
5056 p_data->ble_set_storage.p_read_rep_cback, in bta_dm_ble_setup_storage()
5057 p_data->ble_set_storage.ref_value); in bta_dm_ble_setup_storage()
5061 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()
5074 void bta_dm_ble_enable_batch_scan (tBTA_DM_MSG *p_data) in bta_dm_ble_enable_batch_scan() argument
5083 btm_status = BTM_BleEnableBatchScan(p_data->ble_enable_scan.scan_mode, in bta_dm_ble_enable_batch_scan()
5084 p_data->ble_enable_scan.scan_int, in bta_dm_ble_enable_batch_scan()
5085 p_data->ble_enable_scan.scan_window, in bta_dm_ble_enable_batch_scan()
5086 p_data->ble_enable_scan.discard_rule, in bta_dm_ble_enable_batch_scan()
5087 p_data->ble_enable_scan.addr_type, in bta_dm_ble_enable_batch_scan()
5088 p_data->ble_enable_scan.ref_value); in bta_dm_ble_enable_batch_scan()
5092 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()
5105 void bta_dm_ble_disable_batch_scan (tBTA_DM_MSG *p_data) in bta_dm_ble_disable_batch_scan() argument
5107 UNUSED(p_data); in bta_dm_ble_disable_batch_scan()
5115 btm_status = BTM_BleDisableBatchScan(p_data->ble_disable_scan.ref_value); in bta_dm_ble_disable_batch_scan()
5119 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()
5132 void bta_dm_ble_read_scan_reports(tBTA_DM_MSG *p_data) in bta_dm_ble_read_scan_reports() argument
5141 btm_status = BTM_BleReadScanReports(p_data->ble_read_reports.scan_type, in bta_dm_ble_read_scan_reports()
5142 p_data->ble_read_reports.ref_value); in bta_dm_ble_read_scan_reports()
5146 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()
5159 void bta_dm_ble_track_advertiser(tBTA_DM_MSG *p_data) in bta_dm_ble_track_advertiser() argument
5172 p_data->ble_track_advert.p_track_adv_cback, in bta_dm_ble_track_advertiser()
5173 p_data->ble_track_advert.ref_value); in bta_dm_ble_track_advertiser()
5180 track_adv_data.client_if = (UINT8)p_data->ble_track_advert.ref_value; in bta_dm_ble_track_advertiser()
5181 p_data->ble_track_advert.p_track_adv_cback(&track_adv_data); in bta_dm_ble_track_advertiser()
5257 void bta_dm_cfg_filter_cond (tBTA_DM_MSG *p_data) in bta_dm_cfg_filter_cond() argument
5268 if ((st = BTM_BleCfgFilterCondition(p_data->ble_cfg_filter_cond.action, in bta_dm_cfg_filter_cond()
5269 p_data->ble_cfg_filter_cond.cond_type, in bta_dm_cfg_filter_cond()
5270 (tBTM_BLE_PF_FILT_INDEX)p_data->ble_cfg_filter_cond.filt_index, in bta_dm_cfg_filter_cond()
5271 (tBTM_BLE_PF_COND_PARAM *)p_data->ble_cfg_filter_cond.p_cond_param, in bta_dm_cfg_filter_cond()
5272 bta_ble_scan_cfg_cmpl, p_data->ble_cfg_filter_cond.ref_value)) in bta_dm_cfg_filter_cond()
5275 bta_dm_cb.p_scan_filt_cfg_cback = p_data->ble_cfg_filter_cond.p_filt_cfg_cback; in bta_dm_cfg_filter_cond()
5280 if (p_data->ble_cfg_filter_cond.p_filt_cfg_cback) in bta_dm_cfg_filter_cond()
5281 p_data->ble_cfg_filter_cond.p_filt_cfg_cback(BTA_DM_BLE_PF_CONFIG_EVT, in bta_dm_cfg_filter_cond()
5282 p_data->ble_cfg_filter_cond.cond_type, 0, status, in bta_dm_cfg_filter_cond()
5283 p_data->ble_cfg_filter_cond.ref_value); in bta_dm_cfg_filter_cond()
5296 void bta_dm_enable_scan_filter(tBTA_DM_MSG *p_data) in bta_dm_enable_scan_filter() argument
5307 if((st = BTM_BleEnableDisableFilterFeature(p_data->ble_enable_scan_filt.action, in bta_dm_enable_scan_filter()
5308 p_data->ble_enable_scan_filt.p_filt_status_cback, in bta_dm_enable_scan_filter()
5309 (tBTM_BLE_REF_VALUE)p_data->ble_enable_scan_filt.ref_value)) == BTM_CMD_STARTED) in bta_dm_enable_scan_filter()
5310 bta_dm_cb.p_scan_filt_status_cback = p_data->ble_enable_scan_filt.p_filt_status_cback; in bta_dm_enable_scan_filter()
5314 if (p_data->ble_enable_scan_filt.p_filt_status_cback) in bta_dm_enable_scan_filter()
5315 p_data->ble_enable_scan_filt.p_filt_status_cback (BTA_DM_BLE_PF_ENABLE_EVT, in bta_dm_enable_scan_filter()
5316 p_data->ble_enable_scan_filt.ref_value, status); in bta_dm_enable_scan_filter()
5329 void bta_dm_scan_filter_param_setup (tBTA_DM_MSG *p_data) in bta_dm_scan_filter_param_setup() argument
5340 if ((st = BTM_BleAdvFilterParamSetup(p_data->ble_scan_filt_param_setup.action, in bta_dm_scan_filter_param_setup()
5341 p_data->ble_scan_filt_param_setup.filt_index, in bta_dm_scan_filter_param_setup()
5342 (tBTM_BLE_PF_FILT_PARAMS *)&p_data->ble_scan_filt_param_setup.filt_params, in bta_dm_scan_filter_param_setup()
5343 p_data->ble_scan_filt_param_setup.p_target, in bta_dm_scan_filter_param_setup()
5344 p_data->ble_scan_filt_param_setup.p_filt_param_cback, in bta_dm_scan_filter_param_setup()
5345 p_data->ble_scan_filt_param_setup.ref_value)) == BTM_CMD_STARTED) in bta_dm_scan_filter_param_setup()
5347 … 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()
5352 if (p_data->ble_scan_filt_param_setup.p_filt_param_cback) in bta_dm_scan_filter_param_setup()
5353 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()
5354 p_data->ble_scan_filt_param_setup.ref_value, status); in bta_dm_scan_filter_param_setup()
5395 void bta_dm_ble_get_energy_info(tBTA_DM_MSG *p_data) in bta_dm_ble_get_energy_info() argument
5399 bta_dm_cb.p_energy_info_cback = p_data->ble_energy_info.p_energy_info_cback; in bta_dm_ble_get_energy_info()
5590 void bta_dm_close_gatt_conn(tBTA_DM_MSG *p_data) in bta_dm_close_gatt_conn() argument
5592 UNUSED(p_data); in bta_dm_close_gatt_conn()
5654 void bta_dm_proc_open_evt(tBTA_GATTC_OPEN *p_data) in bta_dm_proc_open_evt() argument
5660 p2 = p_data->remote_bda; in bta_dm_proc_open_evt()
5670 p_data->conn_id, in bta_dm_proc_open_evt()
5671 p_data->client_if, in bta_dm_proc_open_evt()
5672 p_data->status); in bta_dm_proc_open_evt()
5674 bta_dm_search_cb.conn_id = p_data->conn_id; in bta_dm_proc_open_evt()
5676 if (p_data->status == BTA_GATT_OK) in bta_dm_proc_open_evt()
5678 btm_dm_start_disc_gatt_services(p_data->conn_id); in bta_dm_proc_open_evt()
5682 bta_dm_gatt_disc_complete(BTA_GATT_INVALID_CONN_ID, p_data->status); in bta_dm_proc_open_evt()
5695 static void bta_dm_gattc_callback(tBTA_GATTC_EVT event, tBTA_GATTC *p_data) in bta_dm_gattc_callback() argument
5702 APPL_TRACE_DEBUG("BTA_GATTC_REG_EVT client_if = %d", p_data->reg_oper.client_if); in bta_dm_gattc_callback()
5703 if (p_data->reg_oper.status == BTA_GATT_OK) in bta_dm_gattc_callback()
5704 bta_dm_search_cb.client_if = p_data->reg_oper.client_if; in bta_dm_gattc_callback()
5710 bta_dm_proc_open_evt(&p_data->open); in bta_dm_gattc_callback()
5714 bta_dm_gatt_disc_result(p_data->srvc_res.service_uuid.id); in bta_dm_gattc_callback()
5719 bta_dm_gatt_disc_complete(p_data->search_cmpl.conn_id, p_data->search_cmpl.status); in bta_dm_gattc_callback()
5723 APPL_TRACE_DEBUG("BTA_GATTC_CLOSE_EVT reason = %d", p_data->close.reason); in bta_dm_gattc_callback()
5727 !memcmp(p_data->close.remote_bda, bta_dm_search_cb.peer_bdaddr, BD_ADDR_LEN)) in bta_dm_gattc_callback()