diff --git a/system/bta/dm/bta_dm_act.cc b/system/bta/dm/bta_dm_act.cc index b02b9b32d0401a3ae80bf9bd4617f8802de8d7ff..a021ffd1e57a91d89e10918a689829a7209c4667 100644 --- a/system/bta/dm/bta_dm_act.cc +++ b/system/bta/dm/bta_dm_act.cc @@ -4105,6 +4105,20 @@ void bta_dm_le_rand(LeRandCallback cb) { bluetooth::shim::BTM_LeRand(cb); } +/******************************************************************************* + * + * Function BTA_DmSetEventFilterConnectionSetupAllDevices + * + * Description Tell the controller to allow all devices + * + * Parameters + * + *******************************************************************************/ +void bta_dm_set_event_filter_connection_setup_all_devices() { + // Autoplumbed + bluetooth::shim::BTM_SetEventFilterConnectionSetupAllDevices(); +} + /******************************************************************************* * * Function BTA_DmAllowWakeByHid diff --git a/system/bta/dm/bta_dm_api.cc b/system/bta/dm/bta_dm_api.cc index bab66eeedb5392dcf954fc36e7cdf07a7a122fb4..02fde8929e93c4bf6c2dd672206f0832a8525844 100644 --- a/system/bta/dm/bta_dm_api.cc +++ b/system/bta/dm/bta_dm_api.cc @@ -690,6 +690,13 @@ void BTA_DmLeRand(LeRandCallback cb) { do_in_main_thread(FROM_HERE, base::Bind(bta_dm_le_rand, cb)); } +void BTA_DmSetEventFilterConnectionSetupAllDevices() { + APPL_TRACE_API("BTA_DmSetEventFilterConnectionSetupAllDevices"); + do_in_main_thread( + FROM_HERE, + base::Bind(bta_dm_set_event_filter_connection_setup_all_devices)); +} + void BTA_DmAllowWakeByHid() { APPL_TRACE_API("BTA_DmAllowWakeByHid"); do_in_main_thread(FROM_HERE, base::Bind(bta_dm_allow_wake_by_hid)); diff --git a/system/bta/dm/bta_dm_int.h b/system/bta/dm/bta_dm_int.h index 1280491637d3854ec98c29618e72ca960fa301a0..0c292326eca7e25ec32270a4e548ec1ec00b25ed 100644 --- a/system/bta/dm/bta_dm_int.h +++ b/system/bta/dm/bta_dm_int.h @@ -546,6 +546,7 @@ extern void bta_dm_clear_event_mask(void); extern void bta_dm_clear_filter_accept_list(void); extern void bta_dm_disconnect_all_acls(void); extern void bta_dm_le_rand(LeRandCallback cb); +extern void bta_dm_set_event_filter_connection_setup_all_devices(); extern void bta_dm_allow_wake_by_hid(); extern void bta_dm_restore_filter_accept_list(); extern void bta_dm_set_default_event_mask(); diff --git a/system/bta/include/bta_api.h b/system/bta/include/bta_api.h index d5be0a27f68d7c1c2b63469a54f47531d83b2a8c..5b7eba7b5054833209f849baf1afd837948a7b0d 100644 --- a/system/bta/include/bta_api.h +++ b/system/bta/include/bta_api.h @@ -1223,6 +1223,17 @@ using LeRandCallback = base::Callback<void(uint64_t)>; ******************************************************************************/ extern void BTA_DmLeRand(LeRandCallback cb); +/******************************************************************************* + * + * Function BTA_DmSetEventFilterConnectionSetupAllDevices + * + * Description Tell the controller to allow all devices + * + * Parameters + * + *******************************************************************************/ +extern void BTA_DmSetEventFilterConnectionSetupAllDevices(); + /******************************************************************************* * * Function BTA_DmAllowWakeByHid