• Home
  • Raw
  • Download

Lines Matching refs:sec_event

564     tBTA_DM_SEC sec_event;  in bta_dm_process_remove_device()  local
565 sec_event.link_down.bd_addr = bd_addr; in bta_dm_process_remove_device()
566 bta_dm_cb.p_sec_cback(BTA_DM_DEV_UNPAIRED_EVT, &sec_event); in bta_dm_process_remove_device()
716 tBTA_DM_SEC sec_event; in bta_dm_bond() local
726 memset(&sec_event, 0, sizeof(tBTA_DM_SEC)); in bta_dm_bond()
727 sec_event.auth_cmpl.bd_addr = bd_addr; in bta_dm_bond()
732 memcpy(sec_event.auth_cmpl.bd_name, p_name, BD_NAME_LEN); in bta_dm_bond()
733 sec_event.auth_cmpl.bd_name[BD_NAME_LEN] = 0; in bta_dm_bond()
740 sec_event.auth_cmpl.fail_reason = HCI_ERR_ILLEGAL_COMMAND; in bta_dm_bond()
742 sec_event.auth_cmpl.success = true; in bta_dm_bond()
747 bta_dm_cb.p_sec_cback(BTA_DM_AUTH_CMPL_EVT, &sec_event); in bta_dm_bond()
754 tBTA_DM_SEC sec_event; in bta_dm_bond_cancel() local
764 sec_event.bond_cancel_cmpl.result = BTA_FAILURE; in bta_dm_bond_cancel()
766 bta_dm_cb.p_sec_cback(BTA_DM_BOND_CANCEL_CMPL_EVT, &sec_event); in bta_dm_bond_cancel()
1962 tBTA_DM_SEC sec_event; in bta_dm_pinname_cback() local
1968 sec_event.cfm_req.bd_addr = bta_dm_cb.pin_bd_addr; in bta_dm_pinname_cback()
1969 BTA_COPY_DEVICE_CLASS(sec_event.cfm_req.dev_class, bta_dm_cb.pin_dev_class); in bta_dm_pinname_cback()
1974 memcpy(sec_event.cfm_req.bd_name, p_result->remote_bd_name, in bta_dm_pinname_cback()
1976 sec_event.pin_req.bd_name[BD_NAME_LEN] = 0; in bta_dm_pinname_cback()
1978 sec_event.cfm_req.bd_name[0] = 0; in bta_dm_pinname_cback()
1980 sec_event.key_notif.passkey = in bta_dm_pinname_cback()
1984 sec_event.cfm_req.just_works = bta_dm_cb.just_works; in bta_dm_pinname_cback()
1986 sec_event.cfm_req.loc_io_caps = bta_dm_cb.loc_io_caps; in bta_dm_pinname_cback()
1987 sec_event.cfm_req.rmt_io_caps = bta_dm_cb.rmt_io_caps; in bta_dm_pinname_cback()
1988 sec_event.cfm_req.loc_auth_req = bta_dm_cb.loc_auth_req; in bta_dm_pinname_cback()
1989 sec_event.cfm_req.rmt_auth_req = bta_dm_cb.rmt_auth_req; in bta_dm_pinname_cback()
1993 sec_event.pin_req.bd_addr = bta_dm_cb.pin_bd_addr; in bta_dm_pinname_cback()
1994 BTA_COPY_DEVICE_CLASS(sec_event.pin_req.dev_class, bta_dm_cb.pin_dev_class); in bta_dm_pinname_cback()
1999 memcpy(sec_event.pin_req.bd_name, p_result->remote_bd_name, in bta_dm_pinname_cback()
2001 sec_event.pin_req.bd_name[BD_NAME_LEN] = 0; in bta_dm_pinname_cback()
2003 sec_event.pin_req.bd_name[0] = 0; in bta_dm_pinname_cback()
2006 sec_event.key_notif.passkey = in bta_dm_pinname_cback()
2010 if (bta_dm_cb.p_sec_cback) bta_dm_cb.p_sec_cback(event, &sec_event); in bta_dm_pinname_cback()
2024 tBTA_DM_SEC sec_event; in bta_dm_pin_cback() local
2042 sec_event.pin_req.bd_addr = bd_addr; in bta_dm_pin_cback()
2043 BTA_COPY_DEVICE_CLASS(sec_event.pin_req.dev_class, dev_class); in bta_dm_pin_cback()
2044 strlcpy((char*)sec_event.pin_req.bd_name, (char*)bd_name, BD_NAME_LEN + 1); in bta_dm_pin_cback()
2045 sec_event.pin_req.min_16_digit = min_16_digit; in bta_dm_pin_cback()
2047 bta_dm_cb.p_sec_cback(BTA_DM_PIN_REQ_EVT, &sec_event); in bta_dm_pin_cback()
2064 tBTA_DM_SEC sec_event; in bta_dm_new_link_key_cback() local
2068 memset(&sec_event, 0, sizeof(tBTA_DM_SEC)); in bta_dm_new_link_key_cback()
2071 p_auth_cmpl = &sec_event.auth_cmpl; in bta_dm_new_link_key_cback()
2081 sec_event.auth_cmpl.fail_reason = HCI_SUCCESS; in bta_dm_new_link_key_cback()
2084 BTM_ReadDevInfo(bd_addr, &sec_event.auth_cmpl.dev_type, in bta_dm_new_link_key_cback()
2085 &sec_event.auth_cmpl.addr_type); in bta_dm_new_link_key_cback()
2086 if (bta_dm_cb.p_sec_cback) bta_dm_cb.p_sec_cback(event, &sec_event); in bta_dm_new_link_key_cback()
2113 tBTA_DM_SEC sec_event = { in bta_dm_authentication_complete_cback() local
2119 memcpy(sec_event.auth_cmpl.bd_name, bd_name, BD_NAME_LEN); in bta_dm_authentication_complete_cback()
2120 sec_event.auth_cmpl.bd_name[BD_NAME_LEN] = 0; in bta_dm_authentication_complete_cback()
2123 BTM_ReadDevInfo(bd_addr, &sec_event.auth_cmpl.dev_type, in bta_dm_authentication_complete_cback()
2124 &sec_event.auth_cmpl.addr_type); in bta_dm_authentication_complete_cback()
2125 sec_event.auth_cmpl.fail_reason = reason; in bta_dm_authentication_complete_cback()
2127 bta_dm_cb.p_sec_cback(BTA_DM_AUTH_CMPL_EVT, &sec_event); in bta_dm_authentication_complete_cback()
2159 tBTA_DM_SEC sec_event; in bta_dm_sp_cback() local
2186 bta_dm_cb.just_works = sec_event.cfm_req.just_works = in bta_dm_sp_cback()
2188 sec_event.cfm_req.loc_auth_req = p_data->cfm_req.loc_auth_req; in bta_dm_sp_cback()
2189 sec_event.cfm_req.rmt_auth_req = p_data->cfm_req.rmt_auth_req; in bta_dm_sp_cback()
2190 sec_event.cfm_req.loc_io_caps = p_data->cfm_req.loc_io_caps; in bta_dm_sp_cback()
2191 sec_event.cfm_req.rmt_io_caps = p_data->cfm_req.rmt_io_caps; in bta_dm_sp_cback()
2204 bta_dm_cb.num_val = sec_event.key_notif.passkey = in bta_dm_sp_cback()
2213 bta_dm_cb.rmt_io_caps = sec_event.cfm_req.rmt_io_caps; in bta_dm_sp_cback()
2214 bta_dm_cb.loc_io_caps = sec_event.cfm_req.loc_io_caps; in bta_dm_sp_cback()
2215 bta_dm_cb.rmt_auth_req = sec_event.cfm_req.rmt_auth_req; in bta_dm_sp_cback()
2216 bta_dm_cb.loc_auth_req = sec_event.cfm_req.loc_auth_req; in bta_dm_sp_cback()
2230 sec_event.key_notif.bd_addr = p_data->cfm_req.bd_addr; in bta_dm_sp_cback()
2231 BTA_COPY_DEVICE_CLASS(sec_event.key_notif.dev_class, in bta_dm_sp_cback()
2233 strlcpy((char*)sec_event.key_notif.bd_name, in bta_dm_sp_cback()
2253 sec_event.key_notif.bd_addr = p_data->key_notif.bd_addr; in bta_dm_sp_cback()
2254 BTA_COPY_DEVICE_CLASS(sec_event.key_notif.dev_class, in bta_dm_sp_cback()
2256 strlcpy((char*)sec_event.key_notif.bd_name, in bta_dm_sp_cback()
2258 sec_event.key_notif.bd_name[BD_NAME_LEN] = 0; in bta_dm_sp_cback()
2262 bta_dm_cb.p_sec_cback(pin_evt, &sec_event); in bta_dm_sp_cback()
2801 tBTA_DM_SEC sec_event; in bta_dm_bond_cancel_complete_cback() local
2804 sec_event.bond_cancel_cmpl.result = BTA_SUCCESS; in bta_dm_bond_cancel_complete_cback()
2806 sec_event.bond_cancel_cmpl.result = BTA_FAILURE; in bta_dm_bond_cancel_complete_cback()
2809 bta_dm_cb.p_sec_cback(BTA_DM_BOND_CANCEL_CMPL_EVT, &sec_event); in bta_dm_bond_cancel_complete_cback()
3422 tBTA_DM_SEC sec_event; in bta_dm_ble_smp_cback() local
3427 memset(&sec_event, 0, sizeof(tBTA_DM_SEC)); in bta_dm_ble_smp_cback()
3438 sec_event.ble_req.bd_addr = bda; in bta_dm_ble_smp_cback()
3441 strlcpy((char*)sec_event.ble_req.bd_name, p_name, BD_NAME_LEN); in bta_dm_ble_smp_cback()
3443 sec_event.ble_req.bd_name[0] = 0; in bta_dm_ble_smp_cback()
3444 bta_dm_cb.p_sec_cback(BTA_DM_BLE_CONSENT_REQ_EVT, &sec_event); in bta_dm_ble_smp_cback()
3448 sec_event.ble_req.bd_addr = bda; in bta_dm_ble_smp_cback()
3453 strlcpy((char*)sec_event.ble_req.bd_name, p_name, BD_NAME_LEN + 1); in bta_dm_ble_smp_cback()
3455 sec_event.ble_req.bd_name[0] = 0; in bta_dm_ble_smp_cback()
3456 bta_dm_cb.p_sec_cback(BTA_DM_BLE_SEC_REQ_EVT, &sec_event); in bta_dm_ble_smp_cback()
3460 sec_event.key_notif.bd_addr = bda; in bta_dm_ble_smp_cback()
3465 strlcpy((char*)sec_event.key_notif.bd_name, p_name, BD_NAME_LEN + 1); in bta_dm_ble_smp_cback()
3467 sec_event.key_notif.bd_name[0] = 0; in bta_dm_ble_smp_cback()
3468 sec_event.key_notif.passkey = p_data->key_notif; in bta_dm_ble_smp_cback()
3469 bta_dm_cb.p_sec_cback(BTA_DM_BLE_PASSKEY_NOTIF_EVT, &sec_event); in bta_dm_ble_smp_cback()
3473 sec_event.ble_req.bd_addr = bda; in bta_dm_ble_smp_cback()
3474 bta_dm_cb.p_sec_cback(BTA_DM_BLE_PASSKEY_REQ_EVT, &sec_event); in bta_dm_ble_smp_cback()
3478 sec_event.ble_req.bd_addr = bda; in bta_dm_ble_smp_cback()
3479 bta_dm_cb.p_sec_cback(BTA_DM_BLE_OOB_REQ_EVT, &sec_event); in bta_dm_ble_smp_cback()
3483 sec_event.key_notif.bd_addr = bda; in bta_dm_ble_smp_cback()
3484 strlcpy((char*)sec_event.key_notif.bd_name, bta_dm_get_remname(), in bta_dm_ble_smp_cback()
3486 sec_event.key_notif.passkey = p_data->key_notif; in bta_dm_ble_smp_cback()
3487 bta_dm_cb.p_sec_cback(BTA_DM_BLE_NC_REQ_EVT, &sec_event); in bta_dm_ble_smp_cback()
3491 sec_event.ble_req.bd_addr = bda; in bta_dm_ble_smp_cback()
3492 bta_dm_cb.p_sec_cback(BTA_DM_BLE_SC_OOB_REQ_EVT, &sec_event); in bta_dm_ble_smp_cback()
3499 sec_event.local_oob_data = local_oob_data; in bta_dm_ble_smp_cback()
3500 bta_dm_cb.p_sec_cback(BTA_DM_BLE_SC_CR_LOC_OOB_EVT, &sec_event); in bta_dm_ble_smp_cback()
3504 sec_event.ble_key.bd_addr = bda; in bta_dm_ble_smp_cback()
3505 sec_event.ble_key.key_type = p_data->key.key_type; in bta_dm_ble_smp_cback()
3506 sec_event.ble_key.p_key_value = p_data->key.p_key_value; in bta_dm_ble_smp_cback()
3507 bta_dm_cb.p_sec_cback(BTA_DM_BLE_KEY_EVT, &sec_event); in bta_dm_ble_smp_cback()
3511 sec_event.auth_cmpl.bd_addr = bda; in bta_dm_ble_smp_cback()
3512 BTM_ReadDevInfo(bda, &sec_event.auth_cmpl.dev_type, in bta_dm_ble_smp_cback()
3513 &sec_event.auth_cmpl.addr_type); in bta_dm_ble_smp_cback()
3518 strlcpy((char*)sec_event.auth_cmpl.bd_name, p_name, (BD_NAME_LEN + 1)); in bta_dm_ble_smp_cback()
3520 sec_event.auth_cmpl.bd_name[0] = 0; in bta_dm_ble_smp_cback()
3524 sec_event.auth_cmpl.fail_reason = in bta_dm_ble_smp_cback()
3542 sec_event.auth_cmpl.success = true; in bta_dm_ble_smp_cback()
3549 bta_dm_cb.p_sec_cback(BTA_DM_BLE_AUTH_CMPL_EVT, &sec_event); in bta_dm_ble_smp_cback()