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

Unverified Commit f1e1453f authored by Michael Bestas's avatar Michael Bestas
Browse files

Revert "Additionally check le_set_event_mask command resturn status with...

Revert "Additionally check le_set_event_mask command resturn status with UNSUPPORTED_LMP_OR_LL_PARAMETER"

Reason for revert: Replaced by upstream commit.

This reverts commit f5d0da48.

Change-Id: I4edb951bf9f4c63cfdb4b75c3414e115dd61d906
parent 57f7bb35
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -540,7 +540,7 @@ struct Controller::impl {
  void le_set_event_mask(uint64_t le_event_mask) {
    std::unique_ptr<LeSetEventMaskBuilder> packet = LeSetEventMaskBuilder::Create(le_event_mask);
    hci_->EnqueueCommand(std::move(packet), module_.GetHandler()->BindOnceOn(
                                                this, &Controller::impl::check_event_mask_status<LeSetEventMaskCompleteView>));
                                                this, &Controller::impl::check_status<LeSetEventMaskCompleteView>));
  }

  template <class T>
@@ -551,15 +551,6 @@ struct Controller::impl {
    ASSERT(status_view.GetStatus() == ErrorCode::SUCCESS);
  }

  template <class T>
  void check_event_mask_status(CommandCompleteView view) {
    ASSERT(view.IsValid());
    auto status_view = T::Create(view);
    ASSERT(status_view.IsValid());
    ASSERT(status_view.GetStatus() == ErrorCode::SUCCESS ||
           status_view.GetStatus() == ErrorCode::UNSUPPORTED_LMP_OR_LL_PARAMETER);
  }

#define OP_CODE_MAPPING(name)                                                  \
  case OpCode::name: {                                                         \
    uint16_t index = (uint16_t)OpCodeIndex::name;                              \