friend uint16_t BTM_GetNumAclLinks(void);
friend uint16_t acl_get_supported_packet_types();
friend uint8_t btm_handle_to_acl_index(uint16_t hci_handle);
- friend void BTM_SetDefaultLinkSuperTout(uint16_t timeout);
friend void acl_initialize_power_mode(const tACL_CONN& p_acl);
friend void acl_set_disconnect_reason(tHCI_STATUS acl_disc_reason);
friend void btm_acl_created(const RawAddress& bda, uint16_t hci_handle,
return acl_create_le_connection_with_id(CONN_MGR_ID_L2CAP, bd_addr);
}
-void acl_cancel_le_connection(const RawAddress& bd_addr) {
- if (bluetooth::shim::is_gd_acl_enabled()) {
- tBLE_BD_ADDR address_with_type{
- .bda = bd_addr,
- .type = BLE_ADDR_RANDOM,
- };
- return bluetooth::shim::ACL_CancelLeConnection(address_with_type);
- }
- connection_manager::direct_connect_remove(CONN_MGR_ID_L2CAP, bd_addr);
-}
-
void acl_rcv_acl_data(BT_HDR* p_msg) {
acl_header_t acl_header{
.handle = HCI_INVALID_HANDLE,
uint8_t acl_link_role_from_handle(uint16_t handle);
-uint16_t acl_get_hci_handle_for_hcif(const RawAddress& bd_addr,
- tBT_TRANSPORT transport);
-
void acl_set_disconnect_reason(tHCI_STATUS acl_disc_reason);
bool acl_is_role_switch_allowed();
bool is_bonding);
bool acl_create_le_connection(const RawAddress& bd_addr);
bool acl_create_le_connection_with_id(uint8_t id, const RawAddress& bd_addr);
-void acl_cancel_le_connection(const RawAddress& bd_addr);
void acl_reject_connection_request(const RawAddress& bd_addr, uint8_t reason);
void acl_send_data_packet_br_edr(const RawAddress& bd_addr, BT_HDR* p_buf);
void acl_send_data_packet_ble(const RawAddress& bd_addr, BT_HDR* p_buf);
sec_level, psm, mx_proto_id,
mx_chan_id);
}
-
-uint8_t acl_link_role(const RawAddress& remote_bd_addr,
- tBT_TRANSPORT transport) {
- return btm_api_interface->acl_link_role(remote_bd_addr, transport);
-}
\ No newline at end of file