Lines Matching defs:evt_data
1978 tBTM_SP_UPGRADE evt_data;
1991 memcpy (evt_data.bd_addr, p_dev_rec->bd_addr, BD_ADDR_LEN);
1992 evt_data.upgrade = TRUE;
1994 (*btm_cb.api.p_sp_callback) (BTM_SP_UPGRADE_EVT, (tBTM_SP_EVT_DATA *)&evt_data);
1996 BTM_TRACE_DEBUG1 ("evt_data.upgrade:0x%x", evt_data.upgrade);
1997 if (evt_data.upgrade)
3145 tBTM_SP_IO_REQ evt_data;
3151 STREAM_TO_BDADDR (evt_data.bd_addr, p);
3156 evt_data.io_cap = btm_cb.devcb.loc_io_caps;
3157 evt_data.oob_data = BTM_OOB_NONE;
3158 evt_data.auth_req = BTM_DEFAULT_AUTH_REQ;
3162 p_dev_rec = btm_find_or_alloc_dev (evt_data.bd_addr);
3176 evt_data.auth_req = BTM_DEFAULT_DD_AUTH_REQ;
3182 Event uninit_use_in_call: Using uninitialized element of array "evt_data.bd_addr" in call to function "memcmp"
3183 False-positive: evt_data.bd_addr is set at the beginning with: STREAM_TO_BDADDR (evt_data.bd_addr, p);
3185 if (memcmp (evt_data.bd_addr, btm_cb.pairing_bda, BD_ADDR_LEN))
3193 evt_data.auth_req = BTM_DEFAULT_DD_AUTH_REQ;
3209 Event uninit_use_in_call: Using uninitialized element of array "evt_data.bd_addr" in call to function "memcmp"
3210 False-positive: evt_data.bd_addr is set at the beginning with: STREAM_TO_BDADDR (evt_data.bd_addr, p);
3212 btsnd_hcic_io_cap_req_neg_reply(evt_data.bd_addr, err_code);
3216 evt_data.is_orig = is_orig;
3225 evt_data.auth_req = (p_dev_rec->p_cur_service->security_flags & BTM_SEC_OUT_MITM) ? BTM_AUTH_SP_YES : BTM_AUTH_SP_NO;
3230 l2c_pin_code_request (evt_data.bd_addr);
3232 memcpy (btm_cb.pairing_bda, evt_data.bd_addr, BD_ADDR_LEN);
3235 Event uninit_use_in_call: Using uninitialized element of array "evt_data.bd_addr" in call to function "memcmp"
3236 False-positive: False-positive: evt_data.bd_addr is set at the beginning with: STREAM_TO_BDADDR (evt_data.bd_addr, p);
3238 if (!memcmp (evt_data.bd_addr, btm_cb.connecting_bda, BD_ADDR_LEN))
3249 evt_data.auth_req = BTM_AUTH_SPGB_YES;
3254 callback_rc = (*btm_cb.api.p_sp_callback) (BTM_SP_IO_REQ_EVT, (tBTM_SP_EVT_DATA *)&evt_data);
3258 if ((callback_rc == BTM_SUCCESS) || (BTM_OOB_UNKNOWN != evt_data.oob_data))
3265 evt_data.auth_req = (BTM_AUTH_DD_BOND | (evt_data.auth_req & BTM_AUTH_YN_BIT));
3270 btm_cb.devcb.loc_auth_req = evt_data.auth_req;
3271 btm_cb.devcb.loc_io_caps = evt_data.io_cap;
3274 btm_pair_state_descr(btm_cb.pairing_state), evt_data.io_cap,
3275 evt_data.oob_data, evt_data.auth_req);
3277 btsnd_hcic_io_cap_req_reply(evt_data.bd_addr, evt_data.io_cap,
3278 evt_data.oob_data, evt_data.auth_req);
3295 tBTM_SP_IO_RSP evt_data;
3297 STREAM_TO_BDADDR (evt_data.bd_addr, p);
3298 STREAM_TO_UINT8 (evt_data.io_cap, p);
3299 STREAM_TO_UINT8 (evt_data.oob_data, p);
3300 STREAM_TO_UINT8 (evt_data.auth_req, p);
3303 p_dev_rec = btm_find_or_alloc_dev (evt_data.bd_addr);
3308 memcpy (btm_cb.pairing_bda, evt_data.bd_addr, BD_ADDR_LEN);
3320 l2c_pin_code_request (evt_data.bd_addr);
3325 Event uninit_use_in_call: Using uninitialized element of array "evt_data.bd_addr" in call to function "memcmp"
3326 FALSE-POSITIVE error from Coverity test-tool. evt_data.bd_addr is set at the beginning with: STREAM_TO_BDADDR (evt_data.bd_addr, p);
3328 if (!memcmp (evt_data.bd_addr, btm_cb.connecting_bda, BD_ADDR_LEN))
3333 && (evt_data.auth_req & BTM_AUTH_DD_BOND) ) /* and dedicated bonding bit is set */
3339 p_dev_rec->rmt_io_caps = evt_data.io_cap;
3340 p_dev_rec->rmt_auth_req = evt_data.auth_req;
3343 (*btm_cb.api.p_sp_callback) (BTM_SP_IO_RSP_EVT, (tBTM_SP_EVT_DATA *)&evt_data);
3361 tBTM_SP_EVT_DATA evt_data;
3362 UINT8 *p_bda = evt_data.cfm_req.bd_addr;
3376 memcpy (evt_data.cfm_req.bd_addr, p_dev_rec->bd_addr, BD_ADDR_LEN);
3377 memcpy (evt_data.cfm_req.dev_class, p_dev_rec->dev_class, DEV_CLASS_LEN);
3379 BCM_STRNCPY_S ((char *)evt_data.cfm_req.bd_name, sizeof(evt_data.cfm_req.bd_name), (char *)p_dev_rec->sec_bd_name, BTM_MAX_REM_BD_NAME_LEN);
3388 STREAM_TO_UINT32 (evt_data.cfm_req.num_val, p);
3390 evt_data.cfm_req.just_works = TRUE;
3400 evt_data.cfm_req.just_works = FALSE;
3404 evt_data.cfm_req.just_works, btm_cb.devcb.loc_io_caps, p_dev_rec->rmt_io_caps,
3407 evt_data.cfm_req.loc_auth_req = btm_cb.devcb.loc_auth_req;
3408 evt_data.cfm_req.rmt_auth_req = p_dev_rec->rmt_auth_req;
3409 evt_data.cfm_req.loc_io_caps = btm_cb.devcb.loc_io_caps;
3410 evt_data.cfm_req.rmt_io_caps = p_dev_rec->rmt_io_caps;
3415 STREAM_TO_UINT32 (evt_data.key_notif.passkey, p);
3417 BTM_TRACE_DEBUG1 ("BTM_SP_KEY_NOTIF_EVT: passkey: %u", evt_data.key_notif.passkey);
3432 status = (*btm_cb.api.p_sp_callback) (event, (tBTM_SP_EVT_DATA *)&evt_data);
3439 else if ( (event == BTM_SP_CFM_REQ_EVT) && (evt_data.cfm_req.just_works == TRUE) )
3499 tBTM_SP_KEYPRESS evt_data;
3505 p_bda = evt_data.bd_addr;
3508 evt_data.notif_type = *p;
3510 (*btm_cb.api.p_sp_callback) (BTM_SP_KEYPRESS_EVT, (tBTM_SP_EVT_DATA *)&evt_data);
3526 tBTM_SP_COMPLT evt_data;
3532 STREAM_TO_BDADDR (evt_data.bd_addr, p);
3534 if ((p_dev_rec = btm_find_dev (evt_data.bd_addr)) == NULL)
3537 (evt_data.bd_addr[0]<<24) + (evt_data.bd_addr[1]<<16) + (evt_data.bd_addr[2]<<8) + evt_data.bd_addr[3],
3538 (evt_data.bd_addr[4] << 8) + evt_data.bd_addr[5]);
3545 evt_data.status = BTM_ERR_PROCESSING;
3548 evt_data.status = BTM_SUCCESS;
3561 else if (memcmp (btm_cb.pairing_bda, evt_data.bd_addr, BD_ADDR_LEN) == 0)
3577 memcpy (evt_data.bd_addr, p_dev_rec->bd_addr, BD_ADDR_LEN);
3578 memcpy (evt_data.dev_class, p_dev_rec->dev_class, DEV_CLASS_LEN);
3581 (*btm_cb.api.p_sp_callback) (BTM_SP_COMPLT_EVT, (tBTM_SP_EVT_DATA *)&evt_data);
3604 tBTM_SP_RMT_OOB evt_data;
3609 p_bda = evt_data.bd_addr;
3619 memcpy (evt_data.bd_addr, p_dev_rec->bd_addr, BD_ADDR_LEN);
3620 memcpy (evt_data.dev_class, p_dev_rec->dev_class, DEV_CLASS_LEN);
3621 BCM_STRNCPY_S((char *)evt_data.bd_name, sizeof(evt_data.bd_name), (char *)p_dev_rec->sec_bd_name, BTM_MAX_REM_BD_NAME_LEN+1);
3622 evt_data.bd_name[BTM_MAX_REM_BD_NAME_LEN] = 0;
3625 if ((*btm_cb.api.p_sp_callback) (BTM_SP_RMT_OOB_EVT, (tBTM_SP_EVT_DATA *)&evt_data) == BTM_NOT_AUTHORIZED)
3649 tBTM_SP_LOC_OOB evt_data;
3655 evt_data.status = BTM_SUCCESS;
3656 STREAM_TO_ARRAY16(evt_data.c, p);
3657 STREAM_TO_ARRAY16(evt_data.r, p);
3660 evt_data.status = BTM_ERR_PROCESSING;
3663 (*btm_cb.api.p_sp_callback) (BTM_SP_LOC_OOB_EVT, (tBTM_SP_EVT_DATA *)&evt_data);