Merge "add BSSID blacklist indicator"
This commit is contained in:
@@ -451,11 +451,15 @@ class AccessPoint extends Preference {
|
|||||||
int rssi24 = WifiConfiguration.INVALID_RSSI;
|
int rssi24 = WifiConfiguration.INVALID_RSSI;
|
||||||
int num5 = 0;
|
int num5 = 0;
|
||||||
int num24 = 0;
|
int num24 = 0;
|
||||||
|
int numBlackListed = 0;
|
||||||
Map<String, ScanResult> list = mScanResultCache.snapshot();
|
Map<String, ScanResult> list = mScanResultCache.snapshot();
|
||||||
for (ScanResult result : list.values()) {
|
for (ScanResult result : list.values()) {
|
||||||
if (result.seen == 0)
|
if (result.seen == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (result.status != ScanResult.ENABLED)
|
||||||
|
numBlackListed++;
|
||||||
|
|
||||||
if (result.frequency > LOWER_FREQ_5GHZ
|
if (result.frequency > LOWER_FREQ_5GHZ
|
||||||
&& result.frequency < HIGHER_FREQ_5GHZ) {
|
&& result.frequency < HIGHER_FREQ_5GHZ) {
|
||||||
//strictly speaking: [4915, 5825]
|
//strictly speaking: [4915, 5825]
|
||||||
@@ -495,6 +499,8 @@ class AccessPoint extends Preference {
|
|||||||
visibility.append(",");
|
visibility.append(",");
|
||||||
visibility.append(Integer.toString(num5));
|
visibility.append(Integer.toString(num5));
|
||||||
}
|
}
|
||||||
|
if (numBlackListed > 0)
|
||||||
|
visibility.append("!");
|
||||||
visibility.append("]");
|
visibility.append("]");
|
||||||
} else {
|
} else {
|
||||||
if (mRssi != Integer.MAX_VALUE) {
|
if (mRssi != Integer.MAX_VALUE) {
|
||||||
|
Reference in New Issue
Block a user