diff options
author | Ricardo Cerqueira <github@cerqueira.org> | 2012-04-26 22:30:19 +0100 |
---|---|---|
committer | Ricardo Cerqueira <github@cerqueira.org> | 2012-04-26 22:43:32 +0100 |
commit | 2e69ee2c83f1786cf2fbe4a1f7a14a9564e91a13 (patch) | |
tree | 64d21256369c0c38e91bcc26a34a1f72b9f278bc /telephony | |
parent | 2e4ebb9b95f24890ab10e288f1e096e338a46da3 (diff) | |
download | frameworks_base-2e69ee2c83f1786cf2fbe4a1f7a14a9564e91a13.zip frameworks_base-2e69ee2c83f1786cf2fbe4a1f7a14a9564e91a13.tar.gz frameworks_base-2e69ee2c83f1786cf2fbe4a1f7a14a9564e91a13.tar.bz2 |
LGEQualcommRIL: Fix dataCallState objects
Change-Id: I5f36370981737200de808922bd6772a08dc85608
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/com/android/internal/telephony/LGEQualcommRIL.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/telephony/java/com/android/internal/telephony/LGEQualcommRIL.java b/telephony/java/com/android/internal/telephony/LGEQualcommRIL.java index c149245..916d838 100644 --- a/telephony/java/com/android/internal/telephony/LGEQualcommRIL.java +++ b/telephony/java/com/android/internal/telephony/LGEQualcommRIL.java @@ -183,7 +183,7 @@ public class LGEQualcommRIL extends QualcommNoSimReadyRIL implements CommandsInt rr.mp.writeString(user); rr.mp.writeString(password); rr.mp.writeString(authType); - rr.mp.writeString("0"); // ipVersion + rr.mp.writeString("IP"); // ipVersion if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest) + " " + radioTechnology + " " @@ -380,6 +380,11 @@ public class LGEQualcommRIL extends QualcommNoSimReadyRIL implements CommandsInt dataCall.ifname = "rmnet0"; p.readInt(); // RadioTechnology p.readInt(); // inactiveReason + + dataCall.dnses = new String[2]; + dataCall.dnses[0] = SystemProperties.get("net."+dataCall.ifname+".dns1"); + dataCall.dnses[1] = SystemProperties.get("net."+dataCall.ifname+".dns2"); + return dataCall; } @@ -406,6 +411,13 @@ public class LGEQualcommRIL extends QualcommNoSimReadyRIL implements CommandsInt if (!TextUtils.isEmpty(addresses)) { dataCall.addresses = addresses.split(" "); } + + dataCall.dnses = new String[2]; + dataCall.dnses[0] = SystemProperties.get("net."+dataCall.ifname+".dns1"); + dataCall.dnses[1] = SystemProperties.get("net."+dataCall.ifname+".dns2"); + dataCall.active = 1; + dataCall.status = 0; + return dataCall; } |