Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8d837b6 authored by Martin Brabham's avatar Martin Brabham
Browse files

Floss: Tell the controller to allow all devices BTM API

Bug: 232814383
Test: ./build.py
Test: mma -j $(nproc)
Tag: #floss
Change-Id: Idc3e513a21f0660f4a09054d240e959f5b1b7bfb
parent fde5286b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1357,6 +1357,12 @@ tBTM_STATUS bluetooth::shim::BTM_LeRand(LeRandCallback cb) {
  return BTM_SUCCESS;
}

tBTM_STATUS bluetooth::shim::BTM_SetEventFilterConnectionSetupAllDevices() {
  // Autoplumbed
  controller_get_interface()->set_event_filter_connection_setup_all_devices();
  return BTM_SUCCESS;
}

tBTM_STATUS bluetooth::shim::BTM_AllowWakeByHid() {
  // Autoplumbed
  controller_get_interface()->allow_wake_by_hid();
+11 −0
Original line number Diff line number Diff line
@@ -1869,6 +1869,17 @@ tBTM_STATUS BTM_DisconnectAllAcls(void);
using LeRandCallback = base::Callback<void(uint64_t)>;
tBTM_STATUS BTM_LeRand(LeRandCallback);

/*******************************************************************************
 *
 * Function        BTM_SetEventFilterConnectionSetupAllDevices
 *
 * Description    Tell the controller to allow all devices
 *
 * Parameters
 *
 *******************************************************************************/
tBTM_STATUS BTM_SetEventFilterConnectionSetupAllDevices(void);

/*******************************************************************************
 *
 * Function        BTM_AllowWakeByHid
+5 −0
Original line number Diff line number Diff line
@@ -450,6 +450,11 @@ tBTM_STATUS bluetooth::shim::BTM_LeRand(LeRandCallback cb) {
  return BTM_SUCCESS;
}

tBTM_STATUS bluetooth::shim::BTM_SetEventFilterConnectionSetupAllDevices() {
  mock_function_count_map[__func__]++;
  return BTM_SUCCESS;
}

tBTM_STATUS bluetooth::shim::BTM_AllowWakeByHid() {
  mock_function_count_map[__func__]++;
  return BTM_SUCCESS;