From 72d87d99b02c6523a4a3cb83e0d5cf6c8e01075f Mon Sep 17 00:00:00 2001 From: vandwalle Date: Thu, 12 Jun 2014 19:26:30 -0700 Subject: auto-roam fixes, disable scanning based on traffic at interface Bug: 15575229 Bug: 15577651 Change-Id: Ia8914a90d803fd9e6ba9fa51efce50c7b7f1c692 --- wifi/java/android/net/wifi/WifiConfiguration.java | 9 +++++++++ wifi/java/android/net/wifi/WifiInfo.java | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'wifi/java') diff --git a/wifi/java/android/net/wifi/WifiConfiguration.java b/wifi/java/android/net/wifi/WifiConfiguration.java index 48396d5..b64ad60 100644 --- a/wifi/java/android/net/wifi/WifiConfiguration.java +++ b/wifi/java/android/net/wifi/WifiConfiguration.java @@ -342,6 +342,12 @@ public class WifiConfiguration implements Parcelable { /** * @hide + * Uid of app owning the BSSID + */ + public int bssidOwnerUid; + + /** + * @hide * BSSID list on which this configuration was seen. * TODO: prevent this list to grow infinitely, age-out the results */ @@ -1105,6 +1111,7 @@ public class WifiConfiguration implements Parcelable { didSelfAdd = source.didSelfAdd; lastConnectUid = source.lastConnectUid; lastUpdateUid = source.lastUpdateUid; + bssidOwnerUid = source.bssidOwnerUid; creatorUid = source.creatorUid; peerWifiConfiguration = source.peerWifiConfiguration; blackListTimestamp = source.blackListTimestamp; @@ -1153,6 +1160,7 @@ public class WifiConfiguration implements Parcelable { dest.writeInt(creatorUid); dest.writeInt(lastConnectUid); dest.writeInt(lastUpdateUid); + dest.writeInt(bssidOwnerUid); dest.writeLong(blackListTimestamp); } @@ -1192,6 +1200,7 @@ public class WifiConfiguration implements Parcelable { config.creatorUid = in.readInt(); config.lastConnectUid = in.readInt(); config.lastUpdateUid = in.readInt(); + config.bssidOwnerUid = in.readInt(); config.blackListTimestamp = in.readLong(); return config; } diff --git a/wifi/java/android/net/wifi/WifiInfo.java b/wifi/java/android/net/wifi/WifiInfo.java index 6760c56..54a7df2 100644 --- a/wifi/java/android/net/wifi/WifiInfo.java +++ b/wifi/java/android/net/wifi/WifiInfo.java @@ -137,7 +137,7 @@ public class WifiInfo implements Parcelable { public int lowRssiCount; /** - * @hide * + * @hide */ public int score; @@ -215,7 +215,6 @@ public class WifiInfo implements Parcelable { mRssi = INVALID_RSSI; mLinkSpeed = -1; mFrequency = -1; - txBad = 0; } /** @hide */ @@ -228,6 +227,7 @@ public class WifiInfo implements Parcelable { setLinkSpeed(-1); setFrequency(-1); setMeteredHint(false); + txBad = 0; txSuccess = 0; rxSuccess = 0; txRetries = 0; -- cgit v1.1