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

Commit 74344d0d authored by Hansong Zhang's avatar Hansong Zhang Committed by Automerger Merge Worker
Browse files

L2CAP ERTM: Fix p_ccb->max_rx_mtu am: 68970a33 am: 73055920 am: 9f8f5179

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1439081

Change-Id: I1f24834646a08017c4026a9c811485bde4df8bfc
parents bdcdc766 9f8f5179
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1368,7 +1368,8 @@ tL2C_CCB* l2cu_allocate_ccb(tL2C_LCB* p_lcb, uint16_t cid) {
  alarm_free(p_ccb->fcrb.mon_retrans_timer);
  p_ccb->fcrb.mon_retrans_timer = alarm_new("l2c_fcrb.mon_retrans_timer");

  p_ccb->max_rx_mtu = L2CAP_MTU_SIZE;
  p_ccb->max_rx_mtu = BT_DEFAULT_BUFFER_SIZE -
                      (L2CAP_MIN_OFFSET + L2CAP_SDU_LEN_OFFSET + L2CAP_FCS_LEN);
  p_ccb->tx_mps = BT_DEFAULT_BUFFER_SIZE - 32;

  p_ccb->xmit_hold_q = fixed_queue_new(SIZE_MAX);