change AGC reports to raw am: f079aab7bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/qcom/sdm845/gps/+/13945388
Change-Id: I05331249ef5289796f94f7203ab0a5cf3726b3d9
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;