* commit '5d33e76cff65245d03f592a3dbcbf2e17a2f1581': EthernetDataTracker: indicate link up based on flags
This commit is contained in:
@@ -227,7 +227,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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user