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

Commit f900477c authored by janardhana rao bokka's avatar janardhana rao bokka Committed by Jack He
Browse files

L2CAP: Clear local id and remote cid in release_ccb

Issue:
Local_id and remote_cid are not cleared in release_ccb.
Due to that in next iteration that particular CCB results in
identifer mismatch.

Fix:
Clearing the local_id iand remote_cid in release_ccb function.

Test: After above steps issue not seen
Tag: #feature
Bug: 208221015
Change-Id: I502da068f3db4ecb3fd65f45bb71b60cb3cc3cc1
parent c090ca4c
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) {