Permalink
Browse files

LGEQualcommRIL: Fix dataCallState objects

Change-Id: I5f36370981737200de808922bd6772a08dc85608
  • Loading branch information...
1 parent 2e4ebb9 commit 2e69ee2c83f1786cf2fbe4a1f7a14a9564e91a13 @rmcc rmcc committed Apr 26, 2012
Showing with 13 additions and 1 deletion.
  1. +13 −1 telephony/java/com/android/internal/telephony/LGEQualcommRIL.java
View
14 telephony/java/com/android/internal/telephony/LGEQualcommRIL.java
@@ -183,7 +183,7 @@ public LGEQualcommRIL(Context context, int networkMode, int cdmaSubscription) {
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 @@ protected DataCallState getDataCallState(Parcel p, int version) {
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 @@ protected DataCallState getDataCallState(Parcel p, int version) {
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;
}

0 comments on commit 2e69ee2

Please sign in to comment.