Snap for 7249461 from f079aab7bdef680504c932efe7198e2033d5df58 to rvc-qpr3-release
Change-Id: I9defbe9232c227036adfcd5d4bfde578ad71a539
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;