diff options
author | Vishal Mahaveer <vishalm@ti.com> | 2012-09-11 16:41:16 -0500 |
---|---|---|
committer | Vishal Mahaveer <vishalm@ti.com> | 2012-09-11 16:41:16 -0500 |
commit | b6b72f5411d02b928441543dc4c5e8545e48920a (patch) | |
tree | c3036458608860d42f0c4826691e06c93b1336f0 /core | |
parent | ba3cf72a08368ab40556b07b4518536bb59eb2f6 (diff) | |
download | frameworks_base-b6b72f5411d02b928441543dc4c5e8545e48920a.zip frameworks_base-b6b72f5411d02b928441543dc4c5e8545e48920a.tar.gz frameworks_base-b6b72f5411d02b928441543dc4c5e8545e48920a.tar.bz2 |
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: Vishal Mahaveer <vishalm@ti.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/net/EthernetDataTracker.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/net/EthernetDataTracker.java b/core/java/android/net/EthernetDataTracker.java index 28bd289..0cc78c9 100644 --- a/core/java/android/net/EthernetDataTracker.java +++ b/core/java/android/net/EthernetDataTracker.java @@ -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) { |