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

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

Merge "RootCanal: Subtract one for shifting event masks" am: 32097dfa am: 12290aba

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1842585

Change-Id: I68775e77c4a2eabf0aa6c2575fc47b65b13eeeb8
parents 6532c810 12290aba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -350,7 +350,7 @@ class DeviceProperties {
  }

  bool GetLeEventSupported(bluetooth::hci::SubeventCode subevent_code) const {
    return le_event_mask_ & (1u << static_cast<uint64_t>(subevent_code));
    return le_event_mask_ & (1u << (static_cast<uint64_t>(subevent_code) - 1));
  }

  uint64_t GetLeEventMask() const { return le_event_mask_; }