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

Commit 238bfa9e authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Set AuthType to 0 if username is not specified.

If username is not specified, set authType to No PAP / No CHAP
so that the code is backward compatible.
parent ef29379c
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -1268,7 +1268,11 @@ public final class RIL extends BaseCommands implements CommandsInterface {
        rr.mp.writeString(user);
        rr.mp.writeString(user);
        rr.mp.writeString(password);
        rr.mp.writeString(password);
        //TODO(): Add to the APN database, AuthType is set to CHAP/PAP
        //TODO(): Add to the APN database, AuthType is set to CHAP/PAP
        // 0 => Neither PAP nor CHAP will be performed, 3 => PAP / CHAP will be performed.
        if (user != null)
            rr.mp.writeString("3");
            rr.mp.writeString("3");
        else
            rr.mp.writeString("0");


        if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest) + " "
        if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest) + " "
                + apn);
                + apn);