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

Commit 57fe51fb authored by Dustin Johnson's avatar Dustin Johnson Committed by Decad3nce
Browse files

Change I3b7afc39: SamsungCDMAQualcommRIL: Fix SignalStrength.

Change-Id: I87e833d98c0065e9a4277c09a12c2a1667bd23fa
parent c922cb1a
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -125,13 +125,10 @@ CommandsInterface {
        for (int i = 0; i < numInts; i++) {
            response[i] = p.readInt();
        }
        // Workaround: use cdmaecio and evdoecio to determine signal strength
        // and it is better than no signal bars
        // TODO: find a proper fix for it
        response[2] = response[3] * 4; // mutiply by 4 simulate dbm so the
        // signal bars do not jump often to full
        // bars
        response[4] = response[5] * 4;
        // Take just the least significant byte as the signal strength
        response[2] %= 256;
        response[4] %= 256;
        
        // RIL_LTE_SignalStrength
        if (response[7] == 99) {
            // If LTE is not enabled, clear LTE results