Lines Matching refs:bd_addr

54 static void bta_dm_service_search_remname_cback (BD_ADDR bd_addr, DEV_CLASS dc, BD_NAME bd_name);
56 static void bta_dm_find_services ( BD_ADDR bd_addr);
59 static UINT8 bta_dm_authorize_cback (BD_ADDR bd_addr, DEV_CLASS dev_class, BD_NAME bd_name, UINT8 *…
60 static UINT8 bta_dm_pin_cback (BD_ADDR bd_addr, DEV_CLASS dev_class, BD_NAME bd_name, BOOLEAN min_1…
61 static UINT8 bta_dm_new_link_key_cback(BD_ADDR bd_addr, DEV_CLASS dev_class, BD_NAME bd_name, LINK_…
62 static UINT8 bta_dm_authentication_complete_cback(BD_ADDR bd_addr, DEV_CLASS dev_class,BD_NAME bd_n…
63 static void bta_dm_local_name_cback(BD_ADDR bd_addr);
85 static BOOLEAN bta_dm_read_remote_device_name (BD_ADDR bd_addr,tBT_TRANSPORT transport);
98 static void btm_dm_start_gatt_discovery(BD_ADDR bd_addr);
99 static void bta_dm_cancel_gatt_discovery(BD_ADDR bd_addr);
670 void bta_dm_process_remove_device(BD_ADDR bd_addr) in bta_dm_process_remove_device() argument
674 BTA_GATTC_CancelOpen(0, bd_addr, FALSE); in bta_dm_process_remove_device()
677 BTM_SecDeleteDevice(bd_addr); in bta_dm_process_remove_device()
681 BTA_GATTC_Refresh(bd_addr); in bta_dm_process_remove_device()
687 bdcpy(sec_event.link_down.bd_addr, bd_addr); in bta_dm_process_remove_device()
709 bdcpy(other_address, p_dev->bd_addr); in bta_dm_remove_device()
715 if (BTM_IsAclConnectionUp(p_dev->bd_addr, BT_TRANSPORT_LE) || in bta_dm_remove_device()
716 BTM_IsAclConnectionUp(p_dev->bd_addr, BT_TRANSPORT_BR_EDR)) in bta_dm_remove_device()
724 if (!bdcmp(bta_dm_cb.device_list.peer_device[i].peer_bdaddr, p_dev->bd_addr)) in bta_dm_remove_device()
732 btm_remove_acl(p_dev->bd_addr, transport); in bta_dm_remove_device()
779 bta_dm_process_remove_device(p_dev->bd_addr); in bta_dm_remove_device()
832 if (!BTM_SecAddDevice (p_dev->bd_addr, p_dc, p_dev->bd_name, p_dev->features, in bta_dm_add_device()
837 … (p_dev->bd_addr[0]<<24)+(p_dev->bd_addr[1]<<16)+(p_dev->bd_addr[2]<<8)+p_dev->bd_addr[3], in bta_dm_add_device()
838 (p_dev->bd_addr[4]<<8)+p_dev->bd_addr[5]); in bta_dm_add_device()
858 if (BTM_IsAclConnectionUp(p_remove_acl->bd_addr, p_remove_acl->transport)) in bta_dm_close_acl()
862 … if (!bdcmp( bta_dm_cb.device_list.peer_device[index].peer_bdaddr, p_remove_acl->bd_addr)) in bta_dm_close_acl()
875 btm_remove_acl(p_remove_acl->bd_addr, p_remove_acl->transport); in bta_dm_close_acl()
880 if (!BTM_SecDeleteDevice(p_remove_acl->bd_addr)) in bta_dm_close_acl()
886 BTA_GATTC_CancelOpen(0, p_remove_acl->bd_addr, FALSE); in bta_dm_close_acl()
888 BTA_GATTC_Refresh(p_remove_acl->bd_addr); in bta_dm_close_acl()
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()
996 status = BTM_SecBondCancel ( p_data->bond_cancel.bd_addr ); in bta_dm_bond_cancel()
1022 current_trusted_mask = BTM_ReadTrustedMask(p_data->pin_reply.bd_addr); 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()
1125 BTM_ConfirmReqReply(res, p_data->confirm.bd_addr); in bta_dm_confirm()
1157 BTM_IoCapRsp(p_data->ci_io_req.bd_addr, p_data->ci_io_req.io_cap, in bta_dm_ci_io_req_act()
1177 BTM_RemoteOobDataReply(res, p_data->ci_rmt_oob.bd_addr, in bta_dm_ci_rmt_oob_act()
1327 bta_dm_search_cb.p_btm_inq_info = BTM_InqDbRead (p_data->discover.bd_addr); in bta_dm_discover()
1332 bta_dm_discover_device(p_data->discover.bd_addr); in bta_dm_discover()
1349 bdcpy(di_disc.bd_addr, bta_dm_search_cb.peer_bdaddr); in bta_dm_di_disc_cmpl()
1405 bdcpy(di_disc.bd_addr, bta_dm_search_cb.peer_bdaddr); in bta_dm_disable_search_and_disc()
1428 bdcpy(bta_dm_search_cb.peer_bdaddr, p_data->di_disc.bd_addr); in bta_dm_di_disc()
1457 static BOOLEAN bta_dm_read_remote_device_name (BD_ADDR bd_addr,tBT_TRANSPORT transport) in bta_dm_read_remote_device_name() argument
1463 bdcpy(bta_dm_search_cb.peer_bdaddr, bd_addr); in bta_dm_read_remote_device_name()
1567 p_btm_inq_info = BTM_InqDbRead (p_data->rem_name.result.disc_res.bd_addr); 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()
1652 bdcpy (result.disc_ble_res.bd_addr, bta_dm_search_cb.peer_bdaddr); in bta_dm_sdp_result()
1792 bdcpy(p_msg->disc_result.result.disc_res.bd_addr, in bta_dm_sdp_result()
1815 bdcpy(p_msg->disc_result.result.disc_res.bd_addr, in bta_dm_sdp_result()
2078 static void bta_dm_find_services ( BD_ADDR bd_addr) in bta_dm_find_services() argument
2152 …if (!SDP_ServiceSearchAttributeRequest(bd_addr, bta_dm_search_cb.p_sdp_db, &bta_dm_sdp_callback)) { in bta_dm_find_services()
2179 bdcpy(p_msg->disc_result.result.disc_res.bd_addr, bta_dm_search_cb.peer_bdaddr); in bta_dm_find_services()
2363 bdcpy(p_msg->disc_result.result.disc_res.bd_addr, bta_dm_search_cb.peer_bdaddr); in bta_dm_discover_device()
2407 bdcpy(result.inq_res.bd_addr, p_inq->remote_bd_addr); in bta_dm_inq_results_cb()
2483 static void bta_dm_service_search_remname_cback (BD_ADDR bd_addr, DEV_CLASS dc, BD_NAME bd_name) in bta_dm_service_search_remname_cback() argument
2492 if (!bdcmp( bta_dm_search_cb.peer_bdaddr, bd_addr)) in bta_dm_service_search_remname_cback()
2560 bdcpy(p_msg->result.disc_res.bd_addr, bta_dm_search_cb.peer_bdaddr); in bta_dm_remname_cback()
2577 static UINT8 bta_dm_authorize_cback (BD_ADDR bd_addr, DEV_CLASS dev_class, BD_NAME bd_name, in bta_dm_authorize_cback() argument
2585 bdcpy(sec_event.authorize.bd_addr, bd_addr); in bta_dm_authorize_cback()
2645 bdcpy(sec_event.cfm_req.bd_addr, bta_dm_cb.pin_bd_addr); in bta_dm_pinname_cback()
2666 bdcpy(sec_event.pin_req.bd_addr, bta_dm_cb.pin_bd_addr); in bta_dm_pinname_cback()
2696 static UINT8 bta_dm_pin_cback (BD_ADDR bd_addr, DEV_CLASS dev_class, BD_NAME bd_name, in bta_dm_pin_cback() argument
2708 bdcpy(bta_dm_cb.pin_bd_addr, bd_addr); in bta_dm_pin_cback()
2710 …if ((BTM_ReadRemoteDeviceName(bd_addr, bta_dm_pinname_cback, BT_TRANSPORT_BR_EDR)) == BTM_CMD_STAR… in bta_dm_pin_cback()
2716 bdcpy(sec_event.pin_req.bd_addr, bd_addr); in bta_dm_pin_cback()
2734 static UINT8 bta_dm_new_link_key_cback(BD_ADDR bd_addr, DEV_CLASS dev_class, in bta_dm_new_link_key_cback() argument
2750 bdcpy(p_auth_cmpl->bd_addr, bd_addr); in bta_dm_new_link_key_cback()
2764 BTM_ReadDevInfo(bd_addr, &sec_event.auth_cmpl.dev_type, &sec_event.auth_cmpl.addr_type); in bta_dm_new_link_key_cback()
2773 bta_dm_reset_sec_dev_pending(p_auth_cmpl->bd_addr); in bta_dm_new_link_key_cback()
2793 static UINT8 bta_dm_authentication_complete_cback(BD_ADDR bd_addr, DEV_CLASS dev_class,BD_NAME bd_n… in bta_dm_authentication_complete_cback() argument
2801 bdcpy(sec_event.auth_cmpl.bd_addr, bd_addr); in bta_dm_authentication_complete_cback()
2808 BTM_ReadDevInfo(bd_addr, &sec_event.auth_cmpl.dev_type, &sec_event.auth_cmpl.addr_type); in bta_dm_authentication_complete_cback()
2815 bta_dm_remove_sec_dev_entry(bd_addr); in bta_dm_authentication_complete_cback()
2846 bta_dm_co_io_req(p_data->io_req.bd_addr, &p_data->io_req.io_cap, 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()
2880 bdcpy(bta_dm_cb.pin_bd_addr, p_data->cfm_req.bd_addr); 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()
2906 bdcpy(bta_dm_cb.pin_bd_addr, p_data->key_notif.bd_addr); 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()
2937 bdcpy(bta_dm_cb.pin_bd_addr, p_data->rmt_oob.bd_addr); 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()
2951 bta_dm_co_rmt_oob(p_data->rmt_oob.bd_addr); 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()
3018 bdcpy(p_msg->bd_addr, p_data->conn.p_bda); in bta_dm_bl_change_cback()
3025 bdcpy(p_msg->bd_addr, p_data->discn.p_bda); 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()
3141 BD_ADDR_PTR p_bda = p_data->acl_change.bd_addr; 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()
3195 bdcpy(conn.role_chg.bd_addr, p_bda); in bta_dm_acl_change()
3243 bdcpy(conn.link_up.bd_addr, p_bda); in bta_dm_acl_change()
3333 bdcpy(conn.link_down.bd_addr, p_bda); in bta_dm_acl_change()
4154 void bta_dm_encrypt_cback(BD_ADDR bd_addr, tBT_TRANSPORT transport, void *p_ref_data, tBTM_STATUS r… in bta_dm_encrypt_cback() argument
4163 if (bdcmp( bta_dm_cb.device_list.peer_device[i].peer_bdaddr, bd_addr) == 0 && in bta_dm_encrypt_cback()
4196 (*p_callback)(bd_addr, transport, bta_status); in bta_dm_encrypt_cback()
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()
4236 if (BTM_SetEncryption(p_data->set_encryption.bd_addr, p_data->set_encryption.transport, in bta_dm_set_encryption()
4263 bdcpy(result.inq_res.bd_addr, p_inq->remote_bd_addr); in bta_dm_observe_results_cb()
4353 bdcpy(sec_event.ble_req.bd_addr, bda); in bta_dm_ble_smp_cback()
4363 bdcpy(sec_event.key_notif.bd_addr, bda); in bta_dm_ble_smp_cback()
4374 bdcpy(sec_event.ble_req.bd_addr, bda); in bta_dm_ble_smp_cback()
4379 bdcpy(sec_event.ble_req.bd_addr, bda); in bta_dm_ble_smp_cback()
4384 bdcpy(sec_event.key_notif.bd_addr, bda); in bta_dm_ble_smp_cback()
4391 bdcpy(sec_event.ble_key.bd_addr, bda); in bta_dm_ble_smp_cback()
4398 bdcpy(sec_event.auth_cmpl.bd_addr, bda); in bta_dm_ble_smp_cback()
4488 if (!BTM_SecAddBleKey (p_data->add_ble_key.bd_addr, 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()
4512 if (!BTM_SecAddBleDevice (p_data->add_ble_device.bd_addr, NULL, 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()
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()
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()
4580 BTM_SecurityGrant(p_data->ble_sec_grant.bd_addr, p_data->ble_sec_grant.res); in bta_dm_security_grant()
4659 if (!L2CA_UpdateBleConnParams(p_data->ble_update_conn_params.bd_addr, in bta_dm_ble_update_conn_params()
5396 bdcpy (result.disc_ble_res.bd_addr, bta_dm_search_cb.peer_bdaddr); in bta_dm_gatt_disc_result()
5435 bdcpy(p_msg->disc_result.result.disc_res.bd_addr, in bta_dm_gatt_disc_complete()
5500 void btm_dm_start_gatt_discovery (BD_ADDR bd_addr) in btm_dm_start_gatt_discovery() argument
5505 if (bdcmp(bta_dm_search_cb.pending_close_bda, bd_addr) == 0 && in btm_dm_start_gatt_discovery()
5513 BTA_GATTC_Open(bta_dm_search_cb.client_if, bd_addr, TRUE, BTA_GATT_TRANSPORT_LE); in btm_dm_start_gatt_discovery()
5525 static void bta_dm_cancel_gatt_discovery(BD_ADDR bd_addr) in bta_dm_cancel_gatt_discovery() argument
5529 BTA_GATTC_CancelOpen(bta_dm_search_cb.client_if, bd_addr, TRUE); in bta_dm_cancel_gatt_discovery()