Lines Matching full:bd_addr
83 BD_ADDR bd_addr;
115 BD_ADDR bd_addr;
123 BD_ADDR oob_bdaddr; /* peer bdaddr*/
141 static void btif_dm_cb_create_bond(bt_bdaddr_t *bd_addr);
143 static void btif_update_remote_properties(BD_ADDR bd_addr, BD_NAME bd_name,
159 extern int btif_hh_connect(bt_bdaddr_t *bd_addr);
259 bdcpy(remote_bdaddr.address, p_search_data->inq_res.bd_addr);
332 static void bond_state_changed(bt_status_t status, bt_bdaddr_t *bd_addr, bt_bond_state_t state)
344 HAL_CBACK(bt_hal_cbacks, bond_state_changed_cb, status, bd_addr, state);
349 bdcpy(pairing_cb.bd_addr, bd_addr->address);
371 btm_status = BTM_ReadRemoteVersion(*(BD_ADDR*)p_bd, &lmp_ver,
393 static void btif_update_remote_properties(BD_ADDR bd_addr, BD_NAME bd_name,
404 bdcpy(bdaddr.address, bd_addr);
475 bdcpy(remote_bd.address, pairing_cb.bd_addr);
496 static void btif_dm_cb_create_bond(bt_bdaddr_t *bd_addr)
498 BOOLEAN is_hid = check_cod(bd_addr, COD_HID_POINTING);
501 bond_state_changed(BT_STATUS_SUCCESS, bd_addr, BT_BOND_STATE_BONDING);
506 status = btif_hh_connect(bd_addr);
508 bond_state_changed(status, bd_addr, BT_BOND_STATE_NONE);
516 bd2str(bd_addr, &bdstr);
518 (btif_storage_get_remote_addr_type(bd_addr, &addr_type) == BT_STATUS_SUCCESS) &&
521 BTA_DmAddBleDevice(bd_addr->address, addr_type, BT_DEVICE_TYPE_BLE);
524 BTA_DmBond ((UINT8 *)bd_addr->address);
541 void btif_dm_cb_remove_bond(bt_bdaddr_t *bd_addr)
546 is a valid hid connection with this bd_addr. If yes VUP will be issued.*/
548 if (btif_hh_virtual_unplug(bd_addr) != BT_STATUS_SUCCESS)
551 BTA_DmRemoveDevice((UINT8 *)bd_addr->address);
646 bt_bdaddr_t bd_addr;
652 btif_update_remote_properties(p_pin_req->bd_addr, p_pin_req->bd_name,
655 bdcpy(bd_addr.address, p_pin_req->bd_addr);
658 bond_state_changed(BT_STATUS_SUCCESS, &bd_addr, BT_BOND_STATE_BONDING);
670 if (check_cod(&bd_addr, COD_AV_HEADSETS) ||
671 check_cod(&bd_addr, COD_AV_HANDSFREE) ||
672 check_cod(&bd_addr, COD_AV_HEADPHONES) ||
673 check_cod(&bd_addr, COD_AV_PORTABLE_AUDIO) ||
674 check_cod(&bd_addr, COD_AV_HIFI_AUDIO) ||
675 check_cod(&bd_addr, COD_HID_POINTING))
679 if ((btif_storage_is_device_autopair_blacklisted(&bd_addr) == FALSE) &&
689 BTA_DmPinReply( (UINT8*)bd_addr.address, TRUE, 4, pin_code.pin);
693 else if (check_cod(&bd_addr, COD_HID_KEYBOARD) ||
694 check_cod(&bd_addr, COD_HID_COMBO))
696 if(( btif_storage_is_fixed_pin_zeros_keyboard (&bd_addr) == TRUE) &&
706 BTA_DmPinReply( (UINT8*)bd_addr.address, TRUE, 4, pin_code.pin);
712 &bd_addr, &bd_name, cod);
726 bt_bdaddr_t bd_addr;
734 btif_update_remote_properties(p_ssp_cfm_req->bd_addr, p_ssp_cfm_req->bd_name,
737 bdcpy(bd_addr.address, p_ssp_cfm_req->bd_addr);
741 bond_state_changed(BT_STATUS_SUCCESS, &bd_addr, BT_BOND_STATE_BONDING);
746 !(check_cod((bt_bdaddr_t*)&p_ssp_cfm_req->bd_addr, COD_HID_POINTING)))
770 btif_dm_ssp_reply(&bd_addr, BT_SSP_VARIANT_CONSENT, TRUE, 0);
783 HAL_CBACK(bt_hal_cbacks, ssp_request_cb, &bd_addr, &bd_name, cod,
790 bt_bdaddr_t bd_addr;
797 btif_update_remote_properties(p_ssp_key_notif->bd_addr, p_ssp_key_notif->bd_name,
800 bdcpy(bd_addr.address, p_ssp_key_notif->bd_addr);
803 bond_state_changed(BT_STATUS_SUCCESS, &bd_addr, BT_BOND_STATE_BONDING);
812 HAL_CBACK(bt_hal_cbacks, ssp_request_cb, &bd_addr, &bd_name,
828 bt_bdaddr_t bd_addr;
832 bdcpy(bd_addr.address, p_auth_cmpl->bd_addr);
841 ret = btif_storage_add_bonded_device(&bd_addr,
863 btif_dm_get_remote_services(&bd_addr);
889 if (check_cod(&bd_addr, COD_AV_HEADSETS) ||
890 check_cod(&bd_addr, COD_AV_HANDSFREE) ||
891 check_cod(&bd_addr, COD_AV_HEADPHONES) ||
892 check_cod(&bd_addr, COD_AV_PORTABLE_AUDIO) ||
893 check_cod(&bd_addr, COD_AV_HIFI_AUDIO) ||
894 check_cod(&bd_addr, COD_HID_POINTING))
896 btif_storage_add_device_to_autopair_blacklist (&bd_addr);
902 btif_dm_cb_create_bond (&bd_addr);
915 bond_state_changed(status, &bd_addr, state);
948 bdcpy(bdaddr.address, p_search_data->disc_res.bd_addr);
972 bdcpy(bdaddr.address, p_search_data->inq_res.bd_addr);
1009 /* BD_ADDR */
1106 bt_bdaddr_t bd_addr;
1109 bdcpy(bd_addr.address, p_data->disc_res.bd_addr);
1119 btif_dm_get_remote_services(&bd_addr);
1140 (bdcmp(p_data->disc_res.bd_addr, pairing_cb.bd_addr) == 0)&&
1146 bond_state_changed(BT_STATUS_SUCCESS, &bd_addr, BT_BOND_STATE_BONDED);
1152 ret = btif_storage_set_remote_device_property(&bd_addr, &prop);
1156 BT_STATUS_SUCCESS, &bd_addr, 1, &prop);
1176 bt_bdaddr_t bd_addr;
1194 bdcpy(bd_addr.address, p_data->disc_ble_res.bd_addr);
1200 ret = btif_storage_set_remote_device_property(&bd_addr, &prop);
1205 BT_STATUS_SUCCESS, &bd_addr, 1, &prop);
1240 bt_bdaddr_t bd_addr;
1243 bdcpy(bd_addr.address, p_data->disc_res.bd_addr);
1259 BT_STATUS_SUCCESS, &bd_addr, 1, &prop);
1286 bt_bdaddr_t bd_addr;
1336 btif_enable_bluetooth_evt(p_data->enable.status, p_data->enable.bd_addr);
1366 bdcpy(bd_addr.address, pairing_cb.bd_addr);
1367 bond_state_changed(p_data->bond_cancel_cmpl.result, &bd_addr, BT_BOND_STATE_NONE);
1379 bdcpy(bd_addr.address, p_data->link_down.bd_addr);
1383 btif_hh_remove_device(bd_addr);
1386 btif_storage_remove_ble_bonding_keys(&bd_addr);
1388 btif_storage_remove_bonded_device(&bd_addr);
1389 bond_state_changed(BT_STATUS_SUCCESS, &bd_addr, BT_BOND_STATE_NONE);
1417 bdcpy(bd_addr.address, p_data->link_up.bd_addr);
1420 btif_update_remote_version_property(&bd_addr);
1423 &bd_addr, BT_ACL_STATE_CONNECTED);
1427 bdcpy(bd_addr.address, p_data->link_down.bd_addr);
1430 &bd_addr, BT_ACL_STATE_DISCONNECTED);
1452 bond_state_changed(BT_STATUS_SUCCESS, (bt_bdaddr_t*)p_data->ble_key.bd_addr,
1455 else if (memcmp (pairing_cb.bd_addr, p_data->ble_key.bd_addr, BD_ADDR_LEN)!=0)
1857 bt_status_t btif_dm_create_bond(const bt_bdaddr_t *bd_addr)
1861 BTIF_TRACE_EVENT2("%s: bd_addr=%s", __FUNCTION__, bd2str((bt_bdaddr_t *) bd_addr, &bdstr));
1866 (char *)bd_addr, sizeof(bt_bdaddr_t), NULL);
1881 bt_status_t btif_dm_cancel_bond(const bt_bdaddr_t *bd_addr)
1885 BTIF_TRACE_EVENT2("%s: bd_addr=%s", __FUNCTION__, bd2str((bt_bdaddr_t *)bd_addr, &bdstr));
1900 BTA_DmBleSecurityGrant((UINT8 *)bd_addr->address,BTA_DM_SEC_PAIR_NOT_SPT);
1903 BTA_DmConfirm( (UINT8 *)bd_addr->address, FALSE);
1909 BTA_DmBondCancel ((UINT8 *)bd_addr->address);
1913 BTA_DmPinReply( (UINT8 *)bd_addr->address, FALSE, 0, NULL);
1916 BTA_DmBondCancel ((UINT8 *)bd_addr->address);
1922 BTA_DmConfirm( (UINT8 *)bd_addr->address, FALSE);
1926 BTA_DmPinReply( (UINT8 *)bd_addr->address, FALSE, 0, NULL);
1929 BTA_DmBondCancel ((UINT8 *)bd_addr->address);
1930 btif_storage_remove_bonded_device((bt_bdaddr_t *)bd_addr);
1947 bt_status_t btif_dm_remove_bond(const bt_bdaddr_t *bd_addr)
1951 BTIF_TRACE_EVENT2("%s: bd_addr=%s", __FUNCTION__, bd2str((bt_bdaddr_t *)bd_addr, &bdstr));
1953 (char *)bd_addr, sizeof(bt_bdaddr_t), NULL);
1968 bt_status_t btif_dm_pin_reply( const bt_bdaddr_t *bd_addr, uint8_t accept,
1979 BD_ADDR remote_bd_addr;
1980 bdcpy(remote_bd_addr, bd_addr->address);
1991 BTA_DmPinReply( (UINT8 *)bd_addr->address, accept, pin_len, pin_code->pin);
1996 BTA_DmPinReply( (UINT8 *)bd_addr->address, accept, pin_len, pin_code->pin);
2014 bt_status_t btif_dm_ssp_reply(const bt_bdaddr_t *bd_addr,
2032 BTA_DmBleSecurityGrant((UINT8 *)bd_addr->address,BTA_DM_SEC_GRANTED);
2034 BTA_DmBleSecurityGrant((UINT8 *)bd_addr->address,BTA_DM_SEC_PAIR_NOT_SPT);
2037 BTA_DmConfirm( (UINT8 *)bd_addr->address, accept);
2040 BTA_DmConfirm( (UINT8 *)bd_addr->address, accept);
2239 BOOLEAN btif_dm_proc_rmt_oob(BD_ADDR bd_addr, BT_OCTET16 p_c, BT_OCTET16 p_r)
2249 bdcpy(oob_cb.oob_bdaddr, bd_addr);
2284 bdcpy(bt_bd_addr.address, bd_addr);
2297 bt_bdaddr_t bd_addr;
2304 btif_update_remote_properties(p_ssp_key_notif->bd_addr , p_ssp_key_notif->bd_name,
2306 bdcpy(bd_addr.address, p_ssp_key_notif->bd_addr);
2309 bond_state_changed(BT_STATUS_SUCCESS, &bd_addr, BT_BOND_STATE_BONDING);
2313 HAL_CBACK(bt_hal_cbacks, ssp_request_cb, &bd_addr, &bd_name,
2330 bt_bdaddr_t bd_addr;
2334 bdcpy(bd_addr.address, p_auth_cmpl->bd_addr);
2345 BTA_GATTC_Refresh(bd_addr.address);
2346 btif_dm_get_remote_services(&bd_addr);
2359 bond_state_changed(status, &bd_addr, state);
2411 bt_bdaddr_t bd_addr;
2415 bdcpy(bd_addr.address, pairing_cb.bd_addr);
2419 btif_storage_add_ble_bonding_key(&bd_addr,
2427 btif_storage_add_ble_bonding_key(&bd_addr,
2436 btif_storage_add_ble_bonding_key(&bd_addr,
2445 btif_storage_add_ble_bonding_key(&bd_addr,
2453 btif_storage_add_ble_bonding_key(&bd_addr,
2464 bt_bdaddr_t bd_addr;
2468 bdcpy(bd_addr.address, pairing_cb.bd_addr);
2469 btif_storage_remove_ble_bonding_keys(&bd_addr);
2484 bt_bdaddr_t bd_addr;
2496 btif_update_remote_properties(p_ble_req->bd_addr,p_ble_req->bd_name,NULL,BT_DEVICE_TYPE_BLE);
2498 bdcpy(bd_addr.address, p_ble_req->bd_addr);
2501 bond_state_changed(BT_STATUS_SUCCESS, &bd_addr, BT_BOND_STATE_BONDING);
2509 HAL_CBACK(bt_hal_cbacks, ssp_request_cb, &bd_addr, &bd_name, cod,
2526 bt_bdaddr_t bd_addr;
2531 btif_update_remote_properties(p_pin_req->bd_addr,p_pin_req->bd_name,NULL,BT_DEVICE_TYPE_BLE);
2533 bdcpy(bd_addr.address, p_pin_req->bd_addr);
2536 bond_state_changed(BT_STATUS_SUCCESS, &bd_addr, BT_BOND_STATE_BONDING);
2542 &bd_addr, &bd_name, cod);
2546 void btif_dm_update_ble_remote_properties( BD_ADDR bd_addr, BD_NAME bd_name,
2549 btif_update_remote_properties(bd_addr,bd_name,NULL,dev_type);
2606 bt_bdaddr_t bd_addr;
2609 bdcpy(bd_addr.address, pairing_cb.bd_addr);
2610 btif_dm_cancel_bond(&bd_addr);