change AGC reports to raw
Bug: 182534094
Test: GPS test
CRs-Fixed: 2866625
Change-Id: I4a85388c7caaf3f46331cda7b020361e6414c418
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;