diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2013-12-09 18:34:44 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-12-09 18:34:44 +0000 |
commit | 4598ea4e5e6b2accce5165a76f5e2d04ce46c74c (patch) | |
tree | c8750497aed5e07242cd2ce0e4361b2b04a79b39 /wifi | |
parent | 3f6239e37e1eff1e42e0a595ffd4d30d1876a9ea (diff) | |
parent | 263c4788dcf45f104f8668fd6621d1a7c39689b9 (diff) | |
download | frameworks_base-4598ea4e5e6b2accce5165a76f5e2d04ce46c74c.zip frameworks_base-4598ea4e5e6b2accce5165a76f5e2d04ce46c74c.tar.gz frameworks_base-4598ea4e5e6b2accce5165a76f5e2d04ce46c74c.tar.bz2 |
am 263c4788: am 30253d7a: am 2daa0c93: Merge "Add address flags and scope to LinkAddress."
* commit '263c4788dcf45f104f8668fd6621d1a7c39689b9':
Add address flags and scope to LinkAddress.
Diffstat (limited to 'wifi')
-rw-r--r-- | wifi/java/android/net/wifi/WifiStateMachine.java | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/wifi/java/android/net/wifi/WifiStateMachine.java b/wifi/java/android/net/wifi/WifiStateMachine.java index 49fc75d..149f08d 100644 --- a/wifi/java/android/net/wifi/WifiStateMachine.java +++ b/wifi/java/android/net/wifi/WifiStateMachine.java @@ -237,24 +237,25 @@ public class WifiStateMachine extends StateMachine { mWifiStateMachine = wifiStateMachine; } + private void maybeLog(String operation, String iface, LinkAddress address) { + if (DBG) { + log(operation + ": " + address + " on " + iface + + " flags " + address.getFlags() + " scope " + address.getScope()); + } + } + @Override - public void addressUpdated(LinkAddress address, String iface, int flags, int scope) { + public void addressUpdated(String iface, LinkAddress address) { if (mWifiStateMachine.mInterfaceName.equals(iface)) { - if (DBG) { - log("addressUpdated: " + address + " on " + iface + - " flags " + flags + " scope " + scope); - } + maybeLog("addressUpdated", iface, address); mWifiStateMachine.sendMessage(CMD_IP_ADDRESS_UPDATED, address); } } @Override - public void addressRemoved(LinkAddress address, String iface, int flags, int scope) { + public void addressRemoved(String iface, LinkAddress address) { if (mWifiStateMachine.mInterfaceName.equals(iface)) { - if (DBG) { - log("addressRemoved: " + address + " on " + iface + - " flags " + flags + " scope " + scope); - } + maybeLog("addressRemoved", iface, address); mWifiStateMachine.sendMessage(CMD_IP_ADDRESS_REMOVED, address); } } |