summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Couillaud <pierre@broadcom.com>2015-02-11 08:55:29 -0800
committerPierre Couillaud <pierre@broadcom.com>2015-02-11 11:31:22 -0800
commitef8e0b9491467cf8d49fa3af7d43f12e3bd524e4 (patch)
tree85d552b995a0481c073ca56ac3b8a2e55e057fb8
parent74d270d167ed6c3a6fa28e426da80d51a44a2af0 (diff)
downloadandroid_frameworks_opt_net_ethernet-ef8e0b9491467cf8d49fa3af7d43f12e3bd524e4.tar.gz
android_frameworks_opt_net_ethernet-ef8e0b9491467cf8d49fa3af7d43f12e3bd524e4.tar.bz2
android_frameworks_opt_net_ethernet-ef8e0b9491467cf8d49fa3af7d43f12e3bd524e4.zip
eth: make sure dhcp is stopped before bringing up interface.
Signed-off-by: Pierre Couillaud <pierre@broadcom.com> Signed-off-by: Blair Prescott <blairp@broadcom.com>
-rw-r--r--java/com/android/server/ethernet/EthernetNetworkFactory.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/com/android/server/ethernet/EthernetNetworkFactory.java b/java/com/android/server/ethernet/EthernetNetworkFactory.java
index 2d0a957..2de3cea 100644
--- a/java/com/android/server/ethernet/EthernetNetworkFactory.java
+++ b/java/com/android/server/ethernet/EthernetNetworkFactory.java
@@ -167,6 +167,7 @@ class EthernetNetworkFactory {
private void setInterfaceUp(String iface) {
// Bring up the interface so we get link status indications.
try {
+ NetworkUtils.stopDhcp(iface);
mNMService.setInterfaceUp(iface);
String hwAddr = null;
InterfaceConfiguration config = mNMService.getInterfaceConfig(iface);