Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6b72f54 authored by Vishal Mahaveer's avatar Vishal Mahaveer
Browse files

EthernetDataTracker: indicate link up based on flags



Indicate link up state based on flags/interface up, and not on IP address.
This is for ethernet interfaces that already exists.

Change-Id: Ib342d519c483bbb2dfa08cfac2c0c1a288cee7c0
Signed-off-by: default avatarVishal Mahaveer <vishalm@ti.com>
parent ba3cf72a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ public class EthernetDataTracker implements NetworkStateTracker {
                    mIface = iface;
                    mNMService.setInterfaceUp(iface);
                    InterfaceConfiguration config = mNMService.getInterfaceConfig(iface);
                    mLinkUp = config.isActive();
                    mLinkUp = config.hasFlag("up");
                    if (config != null && mHwAddr == null) {
                        mHwAddr = config.getHardwareAddress();
                        if (mHwAddr != null) {