};
typedef sACL_CONN tACL_CONN;
+struct controller_t;
+
/****************************************************
** ACL Management API
****************************************************/
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 BTM_acl_after_controller_started();
+ friend void BTM_acl_after_controller_started(const controller_t* controller);
friend void BTM_default_block_role_switch();
friend void BTM_default_unblock_role_switch();
friend void acl_initialize_power_mode(const tACL_CONN& p_acl);
******************************************************************************/
void btm_acl_init(void) { btm_cb.acl_cb_.Init(); }
-void BTM_acl_after_controller_started() {
+void BTM_acl_after_controller_started(const controller_t* controller) {
internal_.btm_set_default_link_policy(
HCI_ENABLE_CENTRAL_PERIPHERAL_SWITCH | HCI_ENABLE_HOLD_MODE |
HCI_ENABLE_SNIFF_MODE | HCI_ENABLE_PARK_MODE);
- const controller_t* controller = controller_get_interface();
-
/* Create ACL supported packet types mask */
btm_cb.acl_cb_.btm_acl_pkt_types_supported =
(HCI_PKT_TYPES_MASK_DH1 + HCI_PKT_TYPES_MASK_DM1);
BTM_TRACE_DEBUG("Local supported SCO packet types: 0x%04x",
btm_cb.btm_sco_pkt_types_supported);
- BTM_acl_after_controller_started();
+ BTM_acl_after_controller_started(controller_get_interface());
btm_sec_dev_reset();
if (controller->supports_rssi_with_inquiry_results()) {
void BTM_default_unblock_role_switch();
void BTM_default_block_role_switch();
-void BTM_acl_after_controller_started();
+void BTM_acl_after_controller_started(const controller_t* controller);
/*******************************************************************************
*