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

Commit 790a6121 authored by Ted Wang's avatar Ted Wang Committed by Gerrit Code Review
Browse files

Merge "Fix mtu assignment with correct value"

parents 7523a067 805a4cc3
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1150,7 +1150,11 @@ uint16_t AVRC_MsgReq(uint8_t handle, uint8_t label, uint8_t ctype,
    AVRC_CO_ID_TO_BE_STREAM(p_data, AVRC_CO_METADATA);
  } else {
    chk_frag = false;
    if (p_pkt->layer_specific == AVCT_DATA_BROWSE) {
      peer_mtu = AVCT_GetBrowseMtu(handle);
    } else {
      peer_mtu = AVCT_GetPeerMtu(handle);
    }
    if (p_pkt->len > (peer_mtu - AVCT_HDR_LEN_SINGLE)) {
      AVRC_TRACE_ERROR(
          "%s bigger than peer mtu (p_pkt->len(%d) > peer_mtu(%d-%d))",