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

Commit 532610ef authored by Chris Manton's avatar Chris Manton
Browse files

Use get_btm_client_interface().peer.BTM_GetMaxPacketSize

Towards encapsulated code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I1103dd86d508fc4cf937afd4a2338586528acde1
parent f85eb592
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -144,7 +144,8 @@ void port_select_mtu(tPORT* p_port) {
  /* Will select MTU only if application did not setup something */
  if (p_port->mtu == 0) {
    /* find packet size which connection supports */
    packet_size = BTM_GetMaxPacketSize(p_port->bd_addr);
    packet_size =
        get_btm_client_interface().peer.BTM_GetMaxPacketSize(p_port->bd_addr);
    if (packet_size == 0) {
      /* something is very wrong */
      LOG(WARNING) << __func__ << ": bad packet size 0 for" << p_port->bd_addr;