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

Commit a0e196e4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "PDU data lengty computation fix"

parents 9d44bf93 7fd26198
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1795,7 +1795,7 @@ BT_HDR* l2c_fcr_get_next_xmit_sdu_seg(tL2C_CCB* p_ccb,
 * returned PDU is last piece from this SDU.*/
BT_HDR* l2c_lcc_get_next_xmit_sdu_seg(tL2C_CCB* p_ccb,
                                      bool* last_piece_of_sdu) {
  uint16_t max_pdu = p_ccb->peer_conn_cfg.mps;
  uint16_t max_pdu = p_ccb->peer_conn_cfg.mps - 4 /* Length and CID */;

  BT_HDR* p_buf = (BT_HDR*)fixed_queue_try_peek_first(p_ccb->xmit_hold_q);
  bool first_pdu = (p_buf->event == 0) ? true : false;