summaryrefslogtreecommitdiff
authorZhiwei Gong <zhiwei.gong@amlogic.com>2015-04-07 02:46:26 (GMT)
committer zhiwei.gong <zhiwei.gong@amlogic.com>2015-04-07 02:52:40 (GMT)
commit6af821c2644bc959034d1132b344e907c6f322a0 (patch)
treebf4166c74076e4128e3456e61447a643b614c8a6
parent436b8d4316eec656f7d2f5739f27b6035173b0e5 (diff)
downloadpppoe-6af821c2644bc959034d1132b344e907c6f322a0.zip
pppoe-6af821c2644bc959034d1132b344e907c6f322a0.tar.gz
pppoe-6af821c2644bc959034d1132b344e907c6f322a0.tar.bz2
PD#105167:fix pppoe can not get ip when boot
Change-Id: I4ab11b2eb8a015cbaefdcf97e4bffec24c69e8b9
Diffstat
-rw-r--r--java/src/com/droidlogic/pppoe/PppoeStateTracker.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/java/src/com/droidlogic/pppoe/PppoeStateTracker.java b/java/src/com/droidlogic/pppoe/PppoeStateTracker.java
index 05d75e5..3b952f8 100644
--- a/java/src/com/droidlogic/pppoe/PppoeStateTracker.java
+++ b/java/src/com/droidlogic/pppoe/PppoeStateTracker.java
@@ -368,11 +368,12 @@ public class PppoeStateTracker implements NetworkStateTracker {
Slog.i(TAG, "[EVENT: PPP DOWN]");
Slog.i(TAG, "DO NOT clear IP Config and PPP Property");
- SystemProperties.set(PROP_PPP_ADDR, "0.0.0.0");
- SystemProperties.set(PROP_PPP_MASK, "0.0.0.0");
- SystemProperties.set(PROP_PPP_DNS1, "0.0.0.0");
- SystemProperties.set(PROP_PPP_DNS2, "0.0.0.0");
- SystemProperties.set(PROP_PPP_GW, "0.0.0.0");
+// SystemProperties.set(PROP_PPP_ADDR, "0.0.0.0");
+// SystemProperties.set(PROP_PPP_MASK, "0.0.0.0");
+// SystemProperties.set(PROP_PPP_DNS1, "0.0.0.0");
+// SystemProperties.set(PROP_PPP_DNS2, "0.0.0.0");
+// SystemProperties.set(PROP_PPP_GW, "0.0.0.0");
+
info.setIfName(mInterfaceName);
info.setIpAddress("0.0.0.0");
info.setNetMask("0.0.0.0");
@@ -417,7 +418,7 @@ public class PppoeStateTracker implements NetworkStateTracker {
// Shut up!
}
i++;
- } while(info.getIpAddress().equals("0.0.0.0") && i<10);
+ } while(i<10);
prop_val = SystemProperties.get(PROP_PPP_MASK, "0.0.0.0");
info.setNetMask(prop_val);