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

Commit 40629ddb authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

LGEStarRIL: Ensure GPRS attachment class on p970

The p970 appears to reset the attachment class between sessions, so
set it before every data call

Change-Id: I4fc92b3279a6ebfaefd837ba9e95f9f31a7caca1
parent b8a891e9
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -288,6 +288,18 @@ public class LGEStarRIL extends RIL implements CommandsInterface {
            String user, String password, String authType, String protocol,
            Message result) {

        if (SystemProperties.get("ro.build.product").equals("p970")) {
            /* Set GPRS class */
            RILRequest rrCs = RILRequest.obtain(
                    273, null);
            rrCs.mp.writeInt(2);
            rrCs.mp.writeInt(1);
                rrCs.mp.writeInt(1);
            if (RILJ_LOGD) riljLog(rrCs.serialString() + "> "
                    + requestToString(rrCs.mRequest));
            send(rrCs);
        }

        saveDataCall = result;
        RILRequest rr
                = RILRequest.obtain(RIL_REQUEST_SETUP_DATA_CALL, result);