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

Commit 49821a11 authored by Etan Cohen's avatar Etan Cohen
Browse files

[RTT] Legacy RTT API: add attempted/succeeded counts

Wi-Fi RTT legacy API is (now) a wrapper around the new API. Two
new result parameters were added to the new API but not propagated
to the corresponding legacy API:

- Count of attempted measurements
- Count of successful measurements

Bug: 79883720
Test: unit tests
Test: RangeApSupporting11McTest:test_legacy_rtt_80211mc_supporting_aps
Change-Id: Id000c691c22319474e3e98f5ba5d77e4bb4c343e
parent 98c2f7f9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -995,6 +995,10 @@ public class RttManager {
                                    result.getDistanceStdDevMm() / 10;
                            legacyResults[i].rssi = result.getRssi() * -2;
                            legacyResults[i].ts = result.getRangingTimestampMillis() * 1000;
                            legacyResults[i].measurementFrameNumber =
                                    result.getNumAttemptedMeasurements();
                            legacyResults[i].successMeasurementFrameNumber =
                                    result.getNumSuccessfulMeasurements();
                        } else {
                            // just in case legacy API needed some relatively real timestamp
                            legacyResults[i].ts = SystemClock.elapsedRealtime() * 1000;