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

Commit de6aa4f6 authored by Jayden Kim's avatar Jayden Kim Committed by Gerrit Code Review
Browse files

Merge "Add guardrail for offload RFCOMM socket local mtu" into main

parents 6cfcc24f df09c2c4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -206,7 +206,8 @@ int RFCOMM_CreateConnectionWithSecurity(uint16_t uuid, uint8_t scn, bool is_serv
    p_port->rfc_cfg_info = cfg;
    // Update the local mtu with the optional configuration if set by the app
    if (p_port->rfc_cfg_info.rx_mtu_present) {
      p_port->mtu = p_port->rfc_cfg_info.rx_mtu;
      p_port->mtu =
              (p_port->rfc_cfg_info.rx_mtu < rfcomm_mtu) ? p_port->rfc_cfg_info.rx_mtu : rfcomm_mtu;
    }
  }