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

Commit fd745fc2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "L2CAP: Clear local id and remote cid in release_ccb" am: 2010ad5f

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1913453

Change-Id: Ife53f4029b8a3efd576e6bef9acf118faf3d3f71
parents 304fa16f 2010ad5f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1574,6 +1574,9 @@ void l2cu_release_ccb(tL2C_CCB* p_ccb) {

  /* Flag as not in use */
  p_ccb->in_use = false;
  // Clear Remote CID and Local Id
  p_ccb->remote_cid = 0;
  p_ccb->local_id = 0;

  /* If no channels on the connection, start idle timeout */
  if ((p_lcb) && p_lcb->in_use) {