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

Commit 40f903fe authored by Jacky Cheung's avatar Jacky Cheung Committed by android-build-merger
Browse files

Do not GATT_ERROR on MTU change

am: 37c863df

Change-Id: I956c4ca2e31d5c98e986738be0890c17e21b1186
parents 07b5f897 37c863df
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1396,8 +1396,10 @@ void bta_gattc_op_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data)
            return;
        }

        /* discard responses if service change indication is received before operation completed */
        if (p_clcb->auto_update == BTA_GATTC_DISC_WAITING && p_clcb->p_srcb->srvc_hdl_chg)
        /* Except for MTU configuration, discard responses if service change indication is
         * received before operation completed */
        if (p_clcb->auto_update == BTA_GATTC_DISC_WAITING && p_clcb->p_srcb->srvc_hdl_chg &&
            op != GATTC_OPTYPE_CONFIG)
        {
            APPL_TRACE_DEBUG("Discard all responses when service change indication is received.");
            p_data->op_cmpl.status = GATT_ERROR;