summaryrefslogtreecommitdiffstats
path: root/wifi/java
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2013-12-09 18:31:25 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2013-12-09 18:31:25 +0000
commit263c4788dcf45f104f8668fd6621d1a7c39689b9 (patch)
tree9a1f569883ced5f92c9fa3331d15372fda380c6d /wifi/java
parent0126e9803401a657ea27e8ee8499fb52ca3810a9 (diff)
parent30253d7a649bd4fc6a436ae880a70e1142c1e58f (diff)
downloadframeworks_base-263c4788dcf45f104f8668fd6621d1a7c39689b9.zip
frameworks_base-263c4788dcf45f104f8668fd6621d1a7c39689b9.tar.gz
frameworks_base-263c4788dcf45f104f8668fd6621d1a7c39689b9.tar.bz2
am 30253d7a: am 2daa0c93: Merge "Add address flags and scope to LinkAddress."
* commit '30253d7a649bd4fc6a436ae880a70e1142c1e58f': Add address flags and scope to LinkAddress.
Diffstat (limited to 'wifi/java')
-rw-r--r--wifi/java/android/net/wifi/WifiStateMachine.java21
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 d8ca6b0..69d3efe 100644
--- a/wifi/java/android/net/wifi/WifiStateMachine.java
+++ b/wifi/java/android/net/wifi/WifiStateMachine.java
@@ -241,24 +241,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);
}
}