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

Commit 217b7042 authored by Jayden Kim's avatar Jayden Kim Committed by Automerger Merge Worker
Browse files

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

parents 4fc78b4f de6aa4f6
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;
    }
  }