******************************************************************************/
uint16_t btm_get_acl_disc_reason_code(void) {
uint8_t res = btm_cb.acl_cb_.acl_disc_reason;
- BTM_TRACE_DEBUG("btm_get_acl_disc_reason_code");
- return (res);
+ LOG_WARN("%s This API should require an address for per ACL basis", __func__);
+ return res;
}
/*******************************************************************************
btsnd_hcic_reject_conn(bd_addr, reason);
}
+void acl_disconnect(const RawAddress& bd_addr, tBT_TRANSPORT transport,
+ uint8_t reason) {
+ tACL_CONN* p_acl = internal_.btm_bda_to_acl(bd_addr, transport);
+ if (p_acl == nullptr) {
+ LOG_WARN("%s Acl disconnect request for unknown device", __func__);
+ return;
+ }
+ p_acl->disconnect_reason = reason;
+ btsnd_hcic_disconnect(p_acl->hci_handle, reason);
+}
+
void acl_send_data_packet(BT_HDR* p_buf, uint16_t flags) {
bte_main_hci_send(p_buf, flags);
}
void btm_acl_created(const RawAddress& bda, uint16_t hci_handle,
uint8_t link_role, tBT_TRANSPORT transport);
+
+void acl_disconnect(const RawAddress& bd_addr, tBT_TRANSPORT transport,
+ uint8_t reason);