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

Commit 6e0bd50f authored by Rahul Arya's avatar Rahul Arya Committed by Automerger Merge Worker
Browse files

[RESTRICT AUTOMERGE] Reduce behavior change with LE ACL timeout on T am: 72689620

parents 2a3958e5 72689620
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -2630,10 +2630,17 @@ void l2cu_no_dynamic_ccbs(tL2C_LCB* p_lcb) {
  // be in use even without a GATT client. We only timeout if either a dynamic
  // channel or a GATT client was used, since then we expect the client to
  // manage the lifecycle of the connection.

  // FOR T ONLY: We add the outer safety-check to only do this for LE/ATT, to
  // minimize behavioral changes outside a dessert release. But for consistency
  // this should happen throughout on U (i.e. for classic transport + other
  // fixed channels too)
  if (p_lcb->p_fixed_ccbs[L2CAP_ATT_CID - L2CAP_FIRST_FIXED_CHNL] != NULL) {
    if (bluetooth::common::init_flags::finite_att_timeout_is_enabled() &&
        !p_lcb->with_active_local_clients) {
      return;
    }
  }

  if (timeout_ms == 0) {
    L2CAP_TRACE_DEBUG(