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

Commit d289a644 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

parents 1efbf0e1 a8af5057
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(