add BSSID blacklist indicator

Change-Id: I476d9fd48ca5786642721ff78f9a4a603179ad81
This commit is contained in:
vandwalle
2014-07-08 12:23:53 -07:00
parent 7837b99986
commit e750677712

View File

@@ -451,11 +451,15 @@ class AccessPoint extends Preference {
int rssi24 = WifiConfiguration.INVALID_RSSI;
int num5 = 0;
int num24 = 0;
int numBlackListed = 0;
Map<String, ScanResult> list = mScanResultCache.snapshot();
for (ScanResult result : list.values()) {
if (result.seen == 0)
continue;
if (result.status != ScanResult.ENABLED)
numBlackListed++;
if (result.frequency > LOWER_FREQ_5GHZ
&& result.frequency < HIGHER_FREQ_5GHZ) {
//strictly speaking: [4915, 5825]
@@ -495,6 +499,8 @@ class AccessPoint extends Preference {
visibility.append(",");
visibility.append(Integer.toString(num5));
}
if (numBlackListed > 0)
visibility.append("!");
visibility.append("]");
} else {
if (mRssi != Integer.MAX_VALUE) {