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

Commit d8fb1d14 authored by Chris Manton's avatar Chris Manton
Browse files

[8/19] get_btm_client_interface().peer.BTM_GetMaxPacketSize

Bug: 343772702
Test: m .
Flag: EXEMPT, Mechanical Refactor

Change-Id: I24b797f0a2936e7932065646271b02c630dcd8dd
parent a27448a8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@
#include "stack/include/bt_hdr.h"
#include "stack/include/bt_types.h"
#include "stack/include/btm_api.h"
#include "stack/include/btm_client_interface.h"
#include "stack/include/hci_error_code.h"
#include "stack/include/hcidefs.h"
#include "stack/include/l2c_api.h"
@@ -2615,7 +2616,8 @@ void l2cu_adjust_out_mps(tL2C_CCB* p_ccb) {
  uint16_t packet_size;

  /* on the tx side MTU is selected based on packet size of the controller */
  packet_size = BTM_GetMaxPacketSize(p_ccb->p_lcb->remote_bd_addr);
  packet_size = get_btm_client_interface().peer.BTM_GetMaxPacketSize(
      p_ccb->p_lcb->remote_bd_addr);

  if (packet_size <= (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD +
                      L2CAP_SDU_LEN_OVERHEAD + L2CAP_FCS_LEN)) {