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

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

Floss: ClearEventFilter controller plumbing

Bug: 217389506
Test: Compiles
Tag: #floss
Change-Id: I9418605201f4633072fdde70fe9b1f1710c03bc0
parent 852dc3aa
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -114,6 +114,7 @@ typedef struct controller_t {
  void (*set_ble_resolving_list_max_size)(int resolving_list_max_size);
  uint8_t* (*get_local_supported_codecs)(uint8_t* number_of_codecs);
  uint8_t (*get_le_all_initiating_phys)(void);
  uint8_t (*clear_event_filter)(void);

} controller_t;

+8 −1
Original line number Diff line number Diff line
@@ -313,6 +313,12 @@ static uint8_t get_le_resolving_list_size(void) {

static uint8_t get_le_all_initiating_phys() { return data_.phy; }

static uint8_t controller_clear_event_filter() {
  LOG_VERBOSE("Called!");
  bluetooth::shim::GetController()->SetEventFilterClearAll();
  return BTM_SUCCESS;
}

static const controller_t interface = {
    .get_is_ready = get_is_ready,

@@ -410,7 +416,8 @@ static const controller_t interface = {
    .get_ble_resolving_list_max_size = get_le_resolving_list_size,
    .set_ble_resolving_list_max_size = set_ble_resolving_list_max_size,
    .get_local_supported_codecs = get_local_supported_codecs,
    .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};

const controller_t* bluetooth::shim::controller_get_interface() {
  static bool loaded = false;
+4 −1
Original line number Diff line number Diff line
@@ -367,6 +367,8 @@ uint8_t get_le_all_initiating_phys() {
  return phy;
}

tBTM_STATUS clear_event_filter() { return BTM_SUCCESS; }

const controller_t interface = {
    get_is_ready,

@@ -451,7 +453,8 @@ const controller_t interface = {
    get_ble_resolving_list_max_size,
    set_ble_resolving_list_max_size,
    get_local_supported_codecs,
    get_le_all_initiating_phys};
    get_le_all_initiating_phys,
    clear_event_filter};

}  // namespace device_controller
}  // namespace mock