Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eac9ba65 authored by Nitin Arora's avatar Nitin Arora Committed by Andre Eisenbach
Browse files

Use correct structure to read LE connection handle

This patch corrects the retrieval of the connection handle
after the gatt write operation has succeeded successfully.

Change-Id: Iac79a64d6c626c2349b6f1a3744ea49a521a45f4
parent ac6132f7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1364,7 +1364,7 @@ void bta_gattc_read_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_OP_CMPL *p_data)
**
** Function         bta_gattc_write_cmpl
**
** Description      read complete
** Description      write complete
**
** Returns          None.
**
@@ -1380,7 +1380,7 @@ void bta_gattc_write_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_OP_CMPL *p_data)

    if (p_data->p_cmpl != NULL)
    {
        bta_gattc_handle2id(p_clcb->p_srcb, p_data->p_cmpl->handle,
        bta_gattc_handle2id(p_clcb->p_srcb, p_data->p_cmpl->att_value.handle,
                            &cb_data.write.srvc_id, &cb_data.write.char_id,
                            &cb_data.write.descr_type);
    }