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

Commit 91c7d6f0 authored by Martin Brabham's avatar Martin Brabham
Browse files

Floss: Set the event filter to inquiry result device all Controller shim API

Bug: 218496713
Test: mma -j $(nproc)
Test: ./build.py
Tag: #floss
Change-Id: If9c2ca05cd5087a316b831e95d16000ce49e601d
parent bc3bf895
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -120,6 +120,7 @@ typedef struct controller_t {
  uint8_t (*clear_event_filter)(void);
  uint8_t (*clear_event_filter)(void);
  uint8_t (*clear_event_mask)(void);
  uint8_t (*clear_event_mask)(void);
  uint8_t (*le_rand)(LeRandCallback);
  uint8_t (*le_rand)(LeRandCallback);
  uint8_t (*set_event_filter_inquiry_result_all_devices)(void);


} controller_t;
} controller_t;


+8 −1
Original line number Original line Diff line number Diff line
@@ -334,6 +334,11 @@ static uint8_t controller_le_rand(LeRandCallback cb) {
  return BTM_SUCCESS;
  return BTM_SUCCESS;
}
}


static uint8_t controller_set_event_filter_inquiry_result_all_devices() {
  bluetooth::shim::GetController()->SetEventFilterInquiryResultAllDevices();
  return BTM_SUCCESS;
}

static const controller_t interface = {
static const controller_t interface = {
    .get_is_ready = get_is_ready,
    .get_is_ready = get_is_ready,


@@ -434,7 +439,9 @@ static const controller_t interface = {
    .get_le_all_initiating_phys = get_le_all_initiating_phys,
    .get_le_all_initiating_phys = get_le_all_initiating_phys,
    .clear_event_filter = controller_clear_event_filter,
    .clear_event_filter = controller_clear_event_filter,
    .clear_event_mask = controller_clear_event_mask,
    .clear_event_mask = controller_clear_event_mask,
    .le_rand = controller_le_rand};
    .le_rand = controller_le_rand,
    .set_event_filter_inquiry_result_all_devices =
        controller_set_event_filter_inquiry_result_all_devices};


const controller_t* bluetooth::shim::controller_get_interface() {
const controller_t* bluetooth::shim::controller_get_interface() {
  static bool loaded = false;
  static bool loaded = false;
+5 −1
Original line number Original line Diff line number Diff line
@@ -372,6 +372,9 @@ tBTM_STATUS clear_event_filter() { return BTM_SUCCESS; }
tBTM_STATUS clear_event_mask() { return BTM_SUCCESS; }
tBTM_STATUS clear_event_mask() { return BTM_SUCCESS; }


tBTM_STATUS le_rand(LeRandCallback cb) { return BTM_SUCCESS; }
tBTM_STATUS le_rand(LeRandCallback cb) { return BTM_SUCCESS; }
tBTM_STATUS set_event_filter_inquiry_result_all_devices() {
  return BTM_SUCCESS;
}


const controller_t interface = {
const controller_t interface = {
    get_is_ready,
    get_is_ready,
@@ -460,7 +463,8 @@ const controller_t interface = {
    get_le_all_initiating_phys,
    get_le_all_initiating_phys,
    clear_event_filter,
    clear_event_filter,
    clear_event_mask,
    clear_event_mask,
    le_rand};
    le_rand,
    set_event_filter_inquiry_result_all_devices};


}  // namespace device_controller
}  // namespace device_controller
}  // namespace mock
}  // namespace mock