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

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

stack::l2cap Check return code for ble parameter update

Bug: 351900579
Test: m .
Flag: EXEMPT, Logging change

Change-Id: Ia3836bdc4d1dab3a9167fab238a484cf2055b973
parent 3bf70bfe
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@
#include "btif/include/core_callbacks.h"
#include "btif/include/stack_manager_t.h"
#include "hci/controller_interface.h"
#include "hci/hci_layer.h"
#include "hci/hci_interface.h"
#include "internal_include/bt_target.h"
#include "main/shim/entry.h"
#include "osi/include/allocator.h"
@@ -66,8 +66,6 @@ constexpr char kBtmLogTag[] = "L2CAP";

extern tBTM_CB btm_cb;

using base::StringPrintf;

void l2cble_start_conn_update(tL2C_LCB* p_lcb);

void L2CA_Consolidate(const RawAddress& identity_addr, const RawAddress& rpa) {
@@ -1423,6 +1421,9 @@ void L2CA_SetEcosystemBaseInterval(uint32_t base_interval) {
        bool ret = L2CA_UpdateBleConnParams(p_lcb->remote_bd_addr, p_lcb->min_interval,
                                            p_lcb->max_interval, p_lcb->latency, p_lcb->timeout,
                                            p_lcb->min_ce_len, p_lcb->max_ce_len);
        if (!ret) {
          log::warn("Unable to update BLE connection parameters peer:{}", p_lcb->remote_bd_addr);
        }
      }
    }
  }