change AGC reports to raw am: f079aab7bd am: c7360f66b7 am: 7963f3f583
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/qcom/sdm845/gps/+/13945388
Change-Id: I2d1ed8f85bb9015382a0c756dce9b7f4a6d36306
diff --git a/sdm845/gnss/GnssAdapter.cpp b/sdm845/gnss/GnssAdapter.cpp
index 7a0a520..bd94ddd 100644
--- a/sdm845/gnss/GnssAdapter.cpp
+++ b/sdm845/gnss/GnssAdapter.cpp
@@ -3941,28 +3941,28 @@
case GNSS_SV_TYPE_GPS:
case GNSS_SV_TYPE_QZSS:
measurements.measurements[i].agcLevelDb =
- reports.mRfAndParams.back().mAgcGps;
+ -(double)reports.mRfAndParams.back().mJammerGps;
measurements.measurements[i].flags |=
GNSS_MEASUREMENTS_DATA_AUTOMATIC_GAIN_CONTROL_BIT;
break;
case GNSS_SV_TYPE_GALILEO:
measurements.measurements[i].agcLevelDb =
- reports.mRfAndParams.back().mAgcGal;
+ -(double)reports.mRfAndParams.back().mJammerGal;
measurements.measurements[i].flags |=
GNSS_MEASUREMENTS_DATA_AUTOMATIC_GAIN_CONTROL_BIT;
break;
case GNSS_SV_TYPE_GLONASS:
measurements.measurements[i].agcLevelDb =
- reports.mRfAndParams.back().mAgcGlo;
+ -(double)reports.mRfAndParams.back().mJammerGlo;
measurements.measurements[i].flags |=
GNSS_MEASUREMENTS_DATA_AUTOMATIC_GAIN_CONTROL_BIT;
break;
case GNSS_SV_TYPE_BEIDOU:
measurements.measurements[i].agcLevelDb =
- reports.mRfAndParams.back().mAgcBds;
+ -(double)reports.mRfAndParams.back().mJammerBds;
measurements.measurements[i].flags |=
GNSS_MEASUREMENTS_DATA_AUTOMATIC_GAIN_CONTROL_BIT;
break;