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

Commit 11cee41f authored by Ramesh Sudini's avatar Ramesh Sudini Committed by Wink Saville
Browse files

Telephony: Corrections to signal strength values.

RSRP is already -ve.

Change-Id: Ieff689a98088ad6aad9cfc6516169c92bbb0015d
parent 7353301f
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -424,8 +424,8 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker {
                    : -1;
                    : -1;
            if (networkType == ServiceState.RADIO_TECHNOLOGY_LTE) {
            if (networkType == ServiceState.RADIO_TECHNOLOGY_LTE) {
                lteRssi = (ints[offset + 5] >= 0) ? ints[offset + 5] : 99;
                lteRssi = (ints[offset + 5] >= 0) ? ints[offset + 5] : 99;
                lteRsrp = (ints[offset + 6] > 0) ? -ints[offset + 7] : -1;
                lteRsrp = (ints[offset + 6] < 0) ? ints[offset + 6] : -1;
                lteCqi = (ints[offset + 7] >= 0) ? ints[offset + 6] : 99;
                lteCqi = (ints[offset + 7] >= 0) ? ints[offset + 7] : 99;
            }
            }


            if (networkType != ServiceState.RADIO_TECHNOLOGY_LTE) {
            if (networkType != ServiceState.RADIO_TECHNOLOGY_LTE) {