return;
}
- /* discard responses if service change indication is received before
- * operation completed */
+ /* 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) {
+ 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;