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

Commit 8de8705a authored by Chaojing Sun's avatar Chaojing Sun Committed by Andre Eisenbach
Browse files

Fix Dell LE keyboard connection issue

Fixes a connection issue where Dell keyboards do not remain connected
immediately after pairing by removing the gatt_config_ccc_complete()
call in gatt_cl_op_cmpl_cback().

Bug: 27385897
Change-Id: Iee342975dce9fdcd5dcf8f9d459f74fe13d02531
parent 062581ce
Loading
Loading
Loading
Loading
+5 −13
Original line number Diff line number Diff line
@@ -390,18 +390,10 @@ static void gatt_disc_cmpl_cback (UINT16 conn_id, tGATT_DISC_TYPE disc_type, tGA
static void gatt_cl_op_cmpl_cback (UINT16 conn_id, tGATTC_OPTYPE op,
                                   tGATT_STATUS status, tGATT_CL_COMPLETE *p_data)
{
    tGATT_PROFILE_CLCB *p_clcb = gatt_profile_find_clcb_by_conn_id(conn_id);

    if (p_clcb == NULL)
        return;

    if (op == GATTC_OPTYPE_WRITE)
    {
        GATT_TRACE_DEBUG("%s() - ccc write status : %d", __FUNCTION__, status);
    }

    /* free the connection */
    gatt_config_ccc_complete (p_clcb);
    UNUSED(conn_id);
    UNUSED(op);
    UNUSED(status);
    UNUSED(p_data);
}

/*******************************************************************************