Lines Matching refs:adv_data
65 tBTM_BLE_TRACK_ADV_DATA adv_data; in btm_ble_batchscan_filter_track_adv_vse_cback() local
85 memset(&adv_data, 0, sizeof(tBTM_BLE_TRACK_ADV_DATA)); in btm_ble_batchscan_filter_track_adv_vse_cback()
87 adv_data.client_if = (uint8_t)ble_advtrack_cb.ref_value; in btm_ble_batchscan_filter_track_adv_vse_cback()
89 STREAM_TO_UINT8(adv_data.filt_index, p); in btm_ble_batchscan_filter_track_adv_vse_cback()
90 STREAM_TO_UINT8(adv_data.advertiser_state, p); in btm_ble_batchscan_filter_track_adv_vse_cback()
91 STREAM_TO_UINT8(adv_data.advertiser_info_present, p); in btm_ble_batchscan_filter_track_adv_vse_cback()
92 STREAM_TO_BDADDR(adv_data.bd_addr, p); in btm_ble_batchscan_filter_track_adv_vse_cback()
93 STREAM_TO_UINT8(adv_data.addr_type, p); in btm_ble_batchscan_filter_track_adv_vse_cback()
96 if (ADV_INFO_PRESENT == adv_data.advertiser_info_present) { in btm_ble_batchscan_filter_track_adv_vse_cback()
98 STREAM_TO_UINT8(adv_data.tx_power, p); in btm_ble_batchscan_filter_track_adv_vse_cback()
99 STREAM_TO_UINT8(adv_data.rssi_value, p); in btm_ble_batchscan_filter_track_adv_vse_cback()
100 STREAM_TO_UINT16(adv_data.time_stamp, p); in btm_ble_batchscan_filter_track_adv_vse_cback()
102 STREAM_TO_UINT8(adv_data.adv_pkt_len, p); in btm_ble_batchscan_filter_track_adv_vse_cback()
103 if (adv_data.adv_pkt_len > 0) { in btm_ble_batchscan_filter_track_adv_vse_cback()
104 adv_data.p_adv_pkt_data = in btm_ble_batchscan_filter_track_adv_vse_cback()
105 static_cast<uint8_t*>(osi_malloc(adv_data.adv_pkt_len)); in btm_ble_batchscan_filter_track_adv_vse_cback()
106 memcpy(adv_data.p_adv_pkt_data, p, adv_data.adv_pkt_len); in btm_ble_batchscan_filter_track_adv_vse_cback()
107 p += adv_data.adv_pkt_len; in btm_ble_batchscan_filter_track_adv_vse_cback()
110 STREAM_TO_UINT8(adv_data.scan_rsp_len, p); in btm_ble_batchscan_filter_track_adv_vse_cback()
111 if (adv_data.scan_rsp_len > 0) { in btm_ble_batchscan_filter_track_adv_vse_cback()
112 adv_data.p_scan_rsp_data = in btm_ble_batchscan_filter_track_adv_vse_cback()
113 static_cast<uint8_t*>(osi_malloc(adv_data.scan_rsp_len)); in btm_ble_batchscan_filter_track_adv_vse_cback()
114 memcpy(adv_data.p_scan_rsp_data, p, adv_data.scan_rsp_len); in btm_ble_batchscan_filter_track_adv_vse_cback()
119 STREAM_TO_UINT8(adv_data.filt_index, p); in btm_ble_batchscan_filter_track_adv_vse_cback()
120 STREAM_TO_UINT8(adv_data.addr_type, p); in btm_ble_batchscan_filter_track_adv_vse_cback()
121 STREAM_TO_BDADDR(adv_data.bd_addr, p); in btm_ble_batchscan_filter_track_adv_vse_cback()
122 STREAM_TO_UINT8(adv_data.advertiser_state, p); in btm_ble_batchscan_filter_track_adv_vse_cback()
126 adv_data.filt_index, adv_data.addr_type, in btm_ble_batchscan_filter_track_adv_vse_cback()
127 adv_data.advertiser_state); in btm_ble_batchscan_filter_track_adv_vse_cback()
130 BTM_SecAddBleDevice(adv_data.bd_addr, BT_DEVICE_TYPE_BLE, in btm_ble_batchscan_filter_track_adv_vse_cback()
131 adv_data.addr_type); in btm_ble_batchscan_filter_track_adv_vse_cback()
133 ble_advtrack_cb.p_track_cback(&adv_data); in btm_ble_batchscan_filter_track_adv_vse_cback()