diff options
author | vandwalle <vandwalle@google.com> | 2014-06-12 19:26:30 -0700 |
---|---|---|
committer | Pierre Vandwalle <vandwalle@google.com> | 2014-06-13 03:32:28 +0000 |
commit | 72d87d99b02c6523a4a3cb83e0d5cf6c8e01075f (patch) | |
tree | 7d45c25422b0390677c51fb25161f026c259f1fc /wifi/java | |
parent | 90132dd7ca8427af768c5167e5722cb611d95f7c (diff) | |
download | frameworks_base-72d87d99b02c6523a4a3cb83e0d5cf6c8e01075f.zip frameworks_base-72d87d99b02c6523a4a3cb83e0d5cf6c8e01075f.tar.gz frameworks_base-72d87d99b02c6523a4a3cb83e0d5cf6c8e01075f.tar.bz2 |
auto-roam fixes, disable scanning based on traffic at interface
Bug: 15575229
Bug: 15577651
Change-Id: Ia8914a90d803fd9e6ba9fa51efce50c7b7f1c692
Diffstat (limited to 'wifi/java')
-rw-r--r-- | wifi/java/android/net/wifi/WifiConfiguration.java | 9 | ||||
-rw-r--r-- | wifi/java/android/net/wifi/WifiInfo.java | 4 |
2 files changed, 11 insertions, 2 deletions
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; |