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

Commit 294e3b2f authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

[8/19] get_btm_client_interface().peer.BTM_GetMaxPacketSize am: d8fb1d14

parents bcf82c3f d8fb1d14
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)) {