Just some notes I sent to terinfire regarding why he was getting strange ip's and gateways:
Network parameters are pulled from the ip-up script as such in the updated Samsung RIL:
Code:
dataCall.ifname = SystemProperties.get("net.cdma.ppp.interface");
String ifprop = "net." + dataCall.ifname;
dataCall.addresses = new String[] {SystemProperties.get(ifprop + ".local-ip")};
dataCall.gateways = new String[] {SystemProperties.get(ifprop + ".remote-ip")};
dataCall.dnses = new String[] {SystemProperties.get(ifprop + ".dns1"),
SystemProperties.get(ifprop + ".dns2")};
} else {
dataCall.ifname = strings[1];
if (strings.length >= 3) {
dataCall.addresses = strings[2].split(" ");
}
}
} else {
dataCall.status = FailCause.ERROR_UNSPECIFIED.getErrorCode(); // Who knows?
}
return dataCall;
}
This is where your values come from.
It looks like your connection goes through fine, but it's just the things that are being pulled via ip-up that are incorrect.
Code:
D/RILJ ( 402): Got ril.cdma.data_state=2, connected.
D/RILJ ( 402): [0019]< SETUP_DATA_CALL DataCallState: {version=0 status=0 retry=-1 cid=1 active=0 type='' ifname='ppp0' addresses=[10.177.109.5] dnses=[10.133.20.11,10.132.20.11] gateways=[172.28.178.197]}
data_state 2 means pppd service ran fine and saw it connected in the <200ms intervals
Though, what seems wrong here, along with the apn being incorrectly parsed:
Code:
D/RILJ ( 402): [0025]< OPERATOR {Sprint, US, 310120}
D/CDMA ( 402): [CdmaSST] pollStateDone: oldSS=[0 home Sprint US 310120 1xRTT:6 CSS not supported 0 4621 RoamInd=1 DefRoamInd=0 EmergOnly=false] newSS=[0 home null US 310120 EvDo-rev.A:8 CSS not supported 0 4621 RoamInd=1 DefRoamInd=0 EmergOnly=false]
D/CDMA ( 402): [CDMAPhone] getDataConnectionState apnType=default ret=CONNECTING
D/CDMA ( 402): [CdmaSST] getOtasp: state=3
D/CDMA ( 402): [CDMAPhone] getDataConnectionState apnType=mms ret=DISCONNECTED
D/CDMA ( 402): [CdmaSST] getOtasp: state=3
D/CDMA ( 402): [CDMAPhone] getDataConnectionState apnType=hipri ret=DISCONNECTED
D/CDMA ( 402): [CdmaSST] getOtasp: state=3
Highlighted in bold.
There is some things hardcoded in the stack and probably where the issue(s?) are inherited.
https://github.com/CyanogenMod/andro...in/pppd_runner
[ttty name declared here]