uint16_t conn_timeout);
friend void l2c_link_hci_conn_comp(uint8_t status, uint16_t handle,
const RawAddress& p_bda);
+ friend void l2cu_set_lcb_handle(struct t_l2c_linkcb& p_lcb, uint16_t handle);
void SetHandle(uint16_t handle) { handle_ = handle; }
public:
#include "l2c_int.h"
#include "l2cdefs.h"
#include "osi/include/allocator.h"
+#include "osi/include/log.h"
#include "stack/btm/btm_sec.h"
#include "stack/include/acl_api.h"
return (NULL);
}
+void l2cu_set_lcb_handle(struct t_l2c_linkcb& p_lcb, uint16_t handle) {
+ if (p_lcb.Handle() != HCI_INVALID_HANDLE) {
+ LOG_WARN("Should not replace active handle:%hu with new handle:%hu",
+ p_lcb.Handle(), handle);
+ }
+ p_lcb.SetHandle(handle);
+}
+
/*******************************************************************************
*
* Function l2cu_update_lcb_4_bonding