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

Commit 2f9a6f88 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "RootCanal: Harden the implementation for Set Event Filter" into main am: bd85509c

parents 41d4378a bd85509c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1702,6 +1702,10 @@ void DualModeController::SetEventFilter(CommandView command) {
  DEBUG(id_, "   filter_type={}",
        bluetooth::hci::FilterTypeText(command_view.GetFilterType()));

  if (command_view.GetFilterType() != bluetooth::hci::FilterType::CLEAR_ALL_FILTERS) {
    FATAL("unsupported event filter type");
  }

  send_event_(bluetooth::hci::SetEventFilterCompleteBuilder::Create(
      kNumCommandPackets, ErrorCode::SUCCESS));
}