Lines Matching refs:p_adv_data
254 BOOLEAN btif_gattc_copy_datacb(int cbindex, btif_adv_data_t *p_adv_data, BOOLEAN bInstData)
265 p_multi_adv_data_cb->inst_cb[cbindex].is_scan_rsp = p_adv_data->set_scan_rsp ? 1 : 0;
266 if (!p_adv_data->set_scan_rsp)
279 if (p_adv_data->include_name)
282 if (p_adv_data->include_txpower)
285 if (false == bInstData && p_adv_data->min_interval > 0 && p_adv_data->max_interval > 0 &&
286 p_adv_data->max_interval > p_adv_data->min_interval)
290 p_adv_data->min_interval;
292 p_adv_data->max_interval;
308 if (p_adv_data->include_txpower)
315 if (p_adv_data->appearance != 0)
318 p_multi_adv_data_cb->inst_cb[cbindex].data.appearance = p_adv_data->appearance;
321 if (p_adv_data->manufacturer_len > 0 && p_adv_data->p_manufacturer_data != NULL)
328 GKI_getbuf(p_adv_data->manufacturer_len);
333 p_adv_data->manufacturer_len;
335 p_adv_data->p_manufacturer_data, p_adv_data->manufacturer_len);
341 if (p_adv_data->service_data_len > 0 && p_adv_data->p_service_data != NULL)
347 p_elem_service_data->p_val = GKI_getbuf(p_adv_data->service_data_len);
351 p_elem_service_data->len = p_adv_data->service_data_len;
352 memcpy(p_elem_service_data->p_val, p_adv_data->p_service_data,
353 p_adv_data->service_data_len);
380 if (p_adv_data->service_uuid_len > 0 && NULL != p_adv_data->p_service_uuid)
384 while (p_adv_data->service_uuid_len >= LEN_UUID_128)
388 memcpy(&uuid.uu, p_adv_data->p_service_uuid, LEN_UUID_128);
405 GKI_getbuf(p_adv_data->service_uuid_len / LEN_UUID_128 * LEN_UUID_16);
428 GKI_getbuf(p_adv_data->service_uuid_len / LEN_UUID_128 * LEN_UUID_32);
471 p_adv_data->p_service_uuid += LEN_UUID_128;
472 p_adv_data->service_uuid_len -= LEN_UUID_128;