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

Commit 88fd6e56 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Add stack/acl/ble_acl::acl_ble_update_event_received am: 9b8762c6

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1477053

Change-Id: Id2a847fabc949f10581f861e40aa2cf7eef9cf2a
parents 560b2905 9b8762c6
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -136,3 +136,14 @@ void acl_ble_connection_fail(const tBLE_BD_ADDR& address_with_type,
  btm_ble_update_mode_operation(HCI_ROLE_UNKNOWN, &address_with_type.bda,
                                status);
}

void gatt_notify_conn_update(uint16_t handle, uint16_t interval,
                             uint16_t latency, uint16_t timeout,
                             tHCI_STATUS status);
void acl_ble_update_event_received(tHCI_STATUS status, uint16_t handle,
                                   uint16_t interval, uint16_t latency,
                                   uint16_t timeout) {
  l2cble_process_conn_update_evt(handle, status, interval, latency, timeout);

  gatt_notify_conn_update(handle & 0x0FFF, interval, latency, timeout, status);
}
+1 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@
#include "osi/include/log.h"
#include "stack/btm/btm_int.h"
#include "stack/include/acl_hci_link_interface.h"
#include "stack/include/ble_acl_interface.h"
#include "stack/include/ble_hci_link_interface.h"
#include "stack/include/btm_iso_api.h"
#include "stack/include/btu.h"
+3 −0
Original line number Diff line number Diff line
@@ -36,3 +36,6 @@ void acl_ble_enhanced_connection_complete_from_shim(
void acl_ble_connection_fail(const tBLE_BD_ADDR& address_with_type,
                             uint16_t handle, bool enhanced,
                             tHCI_STATUS status);
void acl_ble_update_event_received(tHCI_STATUS status, uint16_t handle,
                                   uint16_t interval, uint16_t latency,
                                   uint16_t timeout);