Merge "EthernetDataTracker: indicate link up based on flags"

This commit is contained in:
Robert Greenwalt
2012-09-11 15:02:23 -07:00
committed by android code review

View File

@@ -223,7 +223,7 @@ public class EthernetDataTracker implements NetworkStateTracker {
mIface = iface; mIface = iface;
mNMService.setInterfaceUp(iface); mNMService.setInterfaceUp(iface);
InterfaceConfiguration config = mNMService.getInterfaceConfig(iface); InterfaceConfiguration config = mNMService.getInterfaceConfig(iface);
mLinkUp = config.isActive(); mLinkUp = config.hasFlag("up");
if (config != null && mHwAddr == null) { if (config != null && mHwAddr == null) {
mHwAddr = config.getHardwareAddress(); mHwAddr = config.getHardwareAddress();
if (mHwAddr != null) { if (mHwAddr != null) {