cb_data.req_data.trans_id = trans_id;
cb_data.req_data.p_data = (tBTA_GATTS_REQ_DATA *)p_data;
+ if(req_type == BTA_GATTS_CONF_EVT) {
+ cb_data.req_data.handle = p_data->handle;
+ }
(*p_rcb->p_cback)(req_type, &cb_data);
} else {
APPL_TRACE_ERROR("connection request on gatt_if[%d] is not interested", gatt_if);
if (p_rcb->in_use && p_rcb->s_hdl <= handle && p_rcb->e_hdl >= handle) {
trans_id = gatt_sr_enqueue_cmd(p_tcb, op_code, handle);
conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_rcb->gatt_if);
+ tGATTS_DATA p_data = {0};
+ p_data.handle = handle;
gatt_sr_send_req_callback(conn_id,
- trans_id, GATTS_REQ_TYPE_CONF, (tGATTS_DATA *)&handle);
+ trans_id, GATTS_REQ_TYPE_CONF, &p_data);
}
}
}