Lines Matching refs:sec_event

686          tBTA_DM_SEC sec_event;  in bta_dm_process_remove_device()  local
687 bdcpy(sec_event.link_down.bd_addr, bd_addr); in bta_dm_process_remove_device()
689 sec_event.link_down.status = HCI_SUCCESS; in bta_dm_process_remove_device()
690 bta_dm_cb.p_sec_cback(BTA_DM_DEV_UNPAIRED_EVT, &sec_event); in bta_dm_process_remove_device()
940 tBTA_DM_SEC sec_event; in bta_dm_bond() local
952 memset(&sec_event, 0, sizeof(tBTA_DM_SEC)); in bta_dm_bond()
953 bdcpy(sec_event.auth_cmpl.bd_addr, p_data->bond.bd_addr); in bta_dm_bond()
957 memcpy(sec_event.auth_cmpl.bd_name, p_name, (BD_NAME_LEN-1)); in bta_dm_bond()
958 sec_event.auth_cmpl.bd_name[BD_NAME_LEN-1] = 0; in bta_dm_bond()
965 sec_event.auth_cmpl.fail_reason = HCI_ERR_ILLEGAL_COMMAND; in bta_dm_bond()
968 sec_event.auth_cmpl.success = TRUE; in bta_dm_bond()
975 bta_dm_cb.p_sec_cback(BTA_DM_AUTH_CMPL_EVT, &sec_event); in bta_dm_bond()
993 tBTA_DM_SEC sec_event; in bta_dm_bond_cancel() local
1000 sec_event.bond_cancel_cmpl.result = BTA_FAILURE; in bta_dm_bond_cancel()
1002 bta_dm_cb.p_sec_cback(BTA_DM_BOND_CANCEL_CMPL_EVT, &sec_event); in bta_dm_bond_cancel()
2580 tBTA_DM_SEC sec_event; in bta_dm_authorize_cback() local
2585 bdcpy(sec_event.authorize.bd_addr, bd_addr); in bta_dm_authorize_cback()
2586 memcpy(sec_event.authorize.dev_class, dev_class, DEV_CLASS_LEN); in bta_dm_authorize_cback()
2587 strlcpy((char*)sec_event.authorize.bd_name, (char*)bd_name, BD_NAME_LEN); in bta_dm_authorize_cback()
2590 sec_event.authorize.service = service_id; in bta_dm_authorize_cback()
2598 sec_event.authorize.service = index; in bta_dm_authorize_cback()
2613 bta_dm_cb.p_sec_cback(BTA_DM_AUTHORIZE_EVT, &sec_event); in bta_dm_authorize_cback()
2638 tBTA_DM_SEC sec_event; in bta_dm_pinname_cback() local
2645 bdcpy(sec_event.cfm_req.bd_addr, bta_dm_cb.pin_bd_addr); in bta_dm_pinname_cback()
2646 BTA_COPY_DEVICE_CLASS(sec_event.cfm_req.dev_class, bta_dm_cb.pin_dev_class); in bta_dm_pinname_cback()
2652 memcpy(sec_event.cfm_req.bd_name, p_result->remote_bd_name, bytes_to_copy); in bta_dm_pinname_cback()
2653 sec_event.pin_req.bd_name[BD_NAME_LEN-1] = 0; in bta_dm_pinname_cback()
2656 sec_event.cfm_req.bd_name[0] = 0; in bta_dm_pinname_cback()
2658 sec_event.key_notif.passkey = bta_dm_cb.num_val; /* get PIN code numeric number */ in bta_dm_pinname_cback()
2661 sec_event.cfm_req.just_works = bta_dm_cb.just_works; in bta_dm_pinname_cback()
2666 bdcpy(sec_event.pin_req.bd_addr, bta_dm_cb.pin_bd_addr); in bta_dm_pinname_cback()
2667 BTA_COPY_DEVICE_CLASS(sec_event.pin_req.dev_class, bta_dm_cb.pin_dev_class); in bta_dm_pinname_cback()
2673 memcpy(sec_event.pin_req.bd_name, p_result->remote_bd_name, bytes_to_copy); in bta_dm_pinname_cback()
2674 sec_event.pin_req.bd_name[BD_NAME_LEN-1] = 0; in bta_dm_pinname_cback()
2677 sec_event.pin_req.bd_name[0] = 0; in bta_dm_pinname_cback()
2680 sec_event.key_notif.passkey = bta_dm_cb.num_val; /* get PIN code numeric number */ in bta_dm_pinname_cback()
2684 bta_dm_cb.p_sec_cback(event, &sec_event); in bta_dm_pinname_cback()
2699 tBTA_DM_SEC sec_event; in bta_dm_pin_cback() local
2716 bdcpy(sec_event.pin_req.bd_addr, bd_addr); in bta_dm_pin_cback()
2717 BTA_COPY_DEVICE_CLASS(sec_event.pin_req.dev_class, dev_class); in bta_dm_pin_cback()
2718 strlcpy((char*)sec_event.pin_req.bd_name, (char*)bd_name, BD_NAME_LEN); in bta_dm_pin_cback()
2719 sec_event.pin_req.min_16_digit = min_16_digit; in bta_dm_pin_cback()
2721 bta_dm_cb.p_sec_cback(BTA_DM_PIN_REQ_EVT, &sec_event); in bta_dm_pin_cback()
2737 tBTA_DM_SEC sec_event; in bta_dm_new_link_key_cback() local
2742 memset (&sec_event, 0, sizeof(tBTA_DM_SEC)); in bta_dm_new_link_key_cback()
2748 p_auth_cmpl = &sec_event.auth_cmpl; in bta_dm_new_link_key_cback()
2760 sec_event.auth_cmpl.fail_reason = HCI_SUCCESS; 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()
2767 bta_dm_cb.p_sec_cback(event, &sec_event); in bta_dm_new_link_key_cback()
2795 tBTA_DM_SEC sec_event; in bta_dm_authentication_complete_cback() local
2800 memset(&sec_event, 0, sizeof(tBTA_DM_SEC)); in bta_dm_authentication_complete_cback()
2801 bdcpy(sec_event.auth_cmpl.bd_addr, bd_addr); in bta_dm_authentication_complete_cback()
2803 memcpy(sec_event.auth_cmpl.bd_name, bd_name, (BD_NAME_LEN-1)); in bta_dm_authentication_complete_cback()
2804 sec_event.auth_cmpl.bd_name[BD_NAME_LEN-1] = 0; 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()
2810 sec_event.auth_cmpl.fail_reason = (UINT8)result; in bta_dm_authentication_complete_cback()
2813 bta_dm_cb.p_sec_cback(BTA_DM_AUTH_CMPL_EVT, &sec_event); in bta_dm_authentication_complete_cback()
2833 tBTA_DM_SEC sec_event; in bta_dm_sp_cback() local
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()
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()
2893 strlcpy((char*)sec_event.key_notif.bd_name, 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()
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()
2917 strlcpy((char*)sec_event.key_notif.bd_name, in bta_dm_sp_cback()
2919 sec_event.key_notif.bd_name[BD_NAME_LEN-1] = 0; in bta_dm_sp_cback()
2923 bta_dm_cb.p_sec_cback(pin_evt, &sec_event); 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()
2949 bta_dm_cb.p_sec_cback(BTA_DM_SP_RMT_OOB_EVT, &sec_event); in bta_dm_sp_cback()
2959 memcpy(&sec_event.key_press, &p_data->key_press, sizeof(tBTM_SP_KEYPRESS)); in bta_dm_sp_cback()
2960 bta_dm_cb.p_sec_cback(BTA_DM_SP_KEYPRESS_EVT, &sec_event); in bta_dm_sp_cback()
2987 tBTA_DM_SEC sec_event; in bta_dm_local_name_cback() local
2990 sec_event.enable.status = BTA_SUCCESS; in bta_dm_local_name_cback()
2993 bta_dm_cb.p_sec_cback(BTA_DM_ENABLE_EVT, &sec_event); in bta_dm_local_name_cback()
3658 tBTA_DM_SEC sec_event; in bta_dm_bond_cancel_complete_cback() local
3661 sec_event.bond_cancel_cmpl.result = BTA_SUCCESS; in bta_dm_bond_cancel_complete_cback()
3663 sec_event.bond_cancel_cmpl.result = BTA_FAILURE; in bta_dm_bond_cancel_complete_cback()
3667 bta_dm_cb.p_sec_cback(BTA_DM_BOND_CANCEL_CMPL_EVT, &sec_event); in bta_dm_bond_cancel_complete_cback()
4328 tBTA_DM_SEC sec_event; in bta_dm_ble_smp_cback() local
4334 memset(&sec_event, 0, sizeof(tBTA_DM_SEC)); in bta_dm_ble_smp_cback()
4353 bdcpy(sec_event.ble_req.bd_addr, bda); in bta_dm_ble_smp_cback()
4356 strlcpy((char*)sec_event.ble_req.bd_name, p_name, BD_NAME_LEN); in bta_dm_ble_smp_cback()
4358 sec_event.ble_req.bd_name[0] = 0; in bta_dm_ble_smp_cback()
4359 bta_dm_cb.p_sec_cback(BTA_DM_BLE_SEC_REQ_EVT, &sec_event); in bta_dm_ble_smp_cback()
4363 bdcpy(sec_event.key_notif.bd_addr, bda); in bta_dm_ble_smp_cback()
4366 strlcpy((char*)sec_event.key_notif.bd_name, p_name, BD_NAME_LEN); in bta_dm_ble_smp_cback()
4368 sec_event.key_notif.bd_name[0] = 0; in bta_dm_ble_smp_cback()
4369 sec_event.key_notif.passkey = p_data->key_notif; in bta_dm_ble_smp_cback()
4370 bta_dm_cb.p_sec_cback(BTA_DM_BLE_PASSKEY_NOTIF_EVT, &sec_event); in bta_dm_ble_smp_cback()
4374 bdcpy(sec_event.ble_req.bd_addr, bda); in bta_dm_ble_smp_cback()
4375 bta_dm_cb.p_sec_cback(BTA_DM_BLE_PASSKEY_REQ_EVT, &sec_event); in bta_dm_ble_smp_cback()
4379 bdcpy(sec_event.ble_req.bd_addr, bda); in bta_dm_ble_smp_cback()
4380 bta_dm_cb.p_sec_cback(BTA_DM_BLE_OOB_REQ_EVT, &sec_event); in bta_dm_ble_smp_cback()
4384 bdcpy(sec_event.key_notif.bd_addr, bda); in bta_dm_ble_smp_cback()
4385 strlcpy((char*)sec_event.key_notif.bd_name, bta_dm_get_remname(), (BD_NAME_LEN)); in bta_dm_ble_smp_cback()
4386 sec_event.key_notif.passkey = p_data->key_notif; in bta_dm_ble_smp_cback()
4387 bta_dm_cb.p_sec_cback(BTA_DM_BLE_NC_REQ_EVT, &sec_event); in bta_dm_ble_smp_cback()
4391 bdcpy(sec_event.ble_key.bd_addr, bda); 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()
4394 bta_dm_cb.p_sec_cback(BTA_DM_BLE_KEY_EVT, &sec_event); in bta_dm_ble_smp_cback()
4398 bdcpy(sec_event.auth_cmpl.bd_addr, bda); in bta_dm_ble_smp_cback()
4400 BTM_ReadDevInfo(bda, &sec_event.auth_cmpl.dev_type, &sec_event.auth_cmpl.addr_type); in bta_dm_ble_smp_cback()
4404 strlcpy((char*)sec_event.auth_cmpl.bd_name, p_name, (BD_NAME_LEN)); in bta_dm_ble_smp_cback()
4406 sec_event.auth_cmpl.bd_name[0] = 0; in bta_dm_ble_smp_cback()
4410sec_event.auth_cmpl.fail_reason = BTA_DM_AUTH_CONVERT_SMP_CODE(((UINT8)p_data->complt.reason)); in bta_dm_ble_smp_cback()
4416 sec_event.auth_cmpl.success = TRUE; in bta_dm_ble_smp_cback()
4425 bta_dm_cb.p_sec_cback(BTA_DM_BLE_AUTH_CMPL_EVT, &sec_event); in bta_dm_ble_smp_cback()