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

Commit 6fc2a95e authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

RIL: Fix datacall parcel reading

MTU is a field introduced by QC in "v11". Don't use it in older
API versions

Change-Id: Ib9f37d2b58c4e93e0223ff356071f820092faaa2
(cherry picked from commit 01a79c43)
parent 5a8dc7df
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3927,9 +3927,11 @@ public class RIL extends BaseCommands implements CommandsInterface {
                if (!TextUtils.isEmpty(pcscf)) {
                    dataCall.pcscf = pcscf.split(" ");
                }
                if (version >= 11) {
                    dataCall.mtu = p.readInt();
                }
            }
        }
        return dataCall;
    }