Closed jewom closed 7 years ago
Yes...there is...although it also includes PSK.
public boolean isNetworkSecure(ScanResult scanResult) {
boolean isSecure = false;
if (scanResult != null && scanResult.capabilities != null) {
if (scanResult.capabilities.contains(Capabilities.WEP) || scanResult.capabilities.contains(Capabilities.PSK) || scanResult.capabilities.contains(Capabilities.EAP)) {
isSecure = true;
}
}
return isSecure;
}
Is that good enough for your use case?
Hi,
Finally I found a solution by checking myScanResult List nearbyAccessPoints.get(i).capabilities
I'll add methods for this in the library :)
commit 4afd442f10cff83454d5084d6c326297a2931b6b
Hi,
Is it posible to check if the SSID use WEP or WPA ?