void main_thread_start_up();
void BTA_dm_on_hw_on();
void BTA_dm_on_hw_off();
+extern void btm_init(void);
+extern void btm_free(void);
using bluetooth::common::MessageLoopThread;
extern tBTM_CB btm_cb;
+extern bool btm_ble_init_pseudo_addr(tBTM_SEC_DEV_REC* p_dev_rec,
+ const RawAddress& new_pseudo_addr);
extern void gatt_notify_phy_updated(uint8_t status, uint16_t handle,
uint8_t tx_phy, uint8_t rx_phy);
extern void btm_ble_advertiser_notify_terminated_legacy(
uint8_t status, uint16_t connection_handle);
+extern bool btm_ble_init_pseudo_addr(tBTM_SEC_DEV_REC* p_dev_rec,
+ const RawAddress& new_pseudo_addr);
void btm_send_hci_create_connection(
uint16_t scan_int, uint16_t scan_win, uint8_t init_filter_policy,
uint8_t addr_type_peer, const RawAddress& bda_peer, uint8_t addr_type_own,
tBTM_SEC_BLE::tADDRESS_TYPE type);
extern void btm_ble_read_resolving_list_entry_complete(uint8_t* p,
uint16_t evt_len);
+extern bool btm_ble_read_resolving_list_entry(tBTM_SEC_DEV_REC* p_dev_rec);
+
+extern void btm_ble_create_conn_cancel_complete(uint8_t* p);
+extern bool btm_ble_addr_resolvable(const RawAddress& rpa,
+ tBTM_SEC_DEV_REC* p_dev_rec);
+
+extern bool btm_ble_resolving_list_load_dev(tBTM_SEC_DEV_REC* p_dev_rec);
+extern void btm_ble_resolving_list_remove_dev(tBTM_SEC_DEV_REC* p_dev_rec);
extern void btm_ble_remove_resolving_list_entry_complete(uint8_t* p,
uint16_t evt_len);
extern void btm_ble_add_resolving_list_entry_complete(uint8_t* p,
#include "main/shim/controller.h"
#include "main/shim/shim.h"
+extern void btm_inq_db_reset(void);
+extern void btm_pm_reset(void);
+
/******************************************************************************/
/* L O C A L D A T A D E F I N I T I O N S */
/******************************************************************************/
*/
tBTM_CB btm_cb;
-void btm_acl_init(void);
+extern void btm_acl_init(void);
+extern void btm_dev_init(void);
+extern void btm_inq_db_init(void);
+extern void btm_sco_init(void);
+extern void wipe_secrets_and_remove(tBTM_SEC_DEV_REC* p_dev_rec);
/*******************************************************************************
*
using bluetooth::common::MessageLoopThread;
using bluetooth::hci::IsoManager;
+void btm_route_sco_data(BT_HDR* p_msg);
+
/* Define BTU storage area */
uint8_t btu_trace_level = HCI_INITIAL_TRACE_LEVEL;
using base::StringPrintf;
+tL2CAP_LE_RESULT_CODE btm_ble_start_sec_check(const RawAddress& bd_addr,
+ uint16_t psm, bool is_originator,
+ tBTM_SEC_CALLBACK* p_callback,
+ void* p_ref_data);
+
static void l2cble_start_conn_update(tL2C_LCB* p_lcb);
/*******************************************************************************
#include "types/bt_transport.h"
#include "types/raw_address.h"
+void btm_sco_acl_removed(const RawAddress* bda);
+
static void l2c_link_send_to_lower(tL2C_LCB* p_lcb, BT_HDR* p_buf,
tL2C_TX_COMPLETE_CB_INFO* p_cbi);
static BT_HDR* l2cu_get_next_buffer_to_send(tL2C_LCB* p_lcb,