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>
This commit is contained in:
Pierre Couillaud
2015-02-11 08:55:29 -08:00
parent 272be52cb7
commit 566e12ad11

View File

@@ -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);