auto-roam fixes, disable scanning based on traffic at interface

Bug: 15575229
Bug: 15577651

Change-Id: Ia8914a90d803fd9e6ba9fa51efce50c7b7f1c692
This commit is contained in:
vandwalle
2014-06-12 19:26:30 -07:00
committed by Pierre Vandwalle
parent 90132dd7ca
commit 72d87d99b0
2 changed files with 11 additions and 2 deletions

View File

@@ -340,6 +340,12 @@ public class WifiConfiguration implements Parcelable {
*/
public int lastUpdateUid;
/**
* @hide
* Uid of app owning the BSSID
*/
public int bssidOwnerUid;
/**
* @hide
* BSSID list on which this configuration was seen.
@@ -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;
}

View File

@@ -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;