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

Commit 40387a47 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "gatt: Add missing disconnect call to EATT layer" into tm-qpr-dev am: 826cd767

parents 742b5354 826cd767
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1585,6 +1585,10 @@ void gatt_cleanup_upon_disc(const RawAddress& bda, tGATT_DISCONN_REASON reason,
  }

  gatt_set_ch_state(p_tcb, GATT_CH_CLOSE);

  /* Notify EATT about disconnection. */
  EattExtension::GetInstance()->Disconnect(p_tcb->peer_bda);

  for (uint8_t i = 0; i < GATT_CL_MAX_LCB; i++) {
    tGATT_CLCB* p_clcb = &gatt_cb.clcb[i];
    if (!p_clcb->in_use || p_clcb->p_tcb != p_tcb) continue;