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

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

Merge "Enable RAS only for channel sounding." into main am: a8af5057 am: d289a644

parents f7e5fdc7 d289a644
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -60,11 +60,15 @@ public:
  }

  void StartDistanceMeasurement(RawAddress identity_addr, uint16_t interval, uint8_t method) {
    DistanceMeasurementMethod distance_measurement_method =
            static_cast<DistanceMeasurementMethod>(method);
    bluetooth::shim::GetDistanceMeasurementManager()->StartDistanceMeasurement(
            bluetooth::ToGdAddress(identity_addr), GetConnectionHandle(identity_addr), interval,
            static_cast<DistanceMeasurementMethod>(method));
            distance_measurement_method);
    if (distance_measurement_method == DistanceMeasurementMethod::METHOD_CS) {
      bluetooth::ras::GetRasClient()->Connect(identity_addr);
    }
  }

  void StopDistanceMeasurement(RawAddress identity_addr, uint8_t method) {
    bluetooth::shim::GetDistanceMeasurementManager()->StopDistanceMeasurement(