public void updateFromScanResult(ScanResult scanResult) { blockRefresh(); // We don't keep specific AP BSSIDs and instead leave that as wildcard setSeen(true); setSsid(scanResult.SSID); if (networkId == NETWORK_ID_NOT_SET) { // Since ScanResults don't cross-reference network ID, we set it as a wildcard setNetworkId(NETWORK_ID_ANY); } setSignal(scanResult.level); setSecurity(getScanResultSecurity(scanResult)); unblockRefresh(); }