Revert "Add Hotspot WPA3 Settings"

This reverts commit e0062af10c.

Reason for revert: Bug 176569060 - Droidfood blocking crash in Settings app.

Change-Id: Id50c96e8ce704b19e5ffb9b9a9fcbb0db2d81aee
This commit is contained in:
bsears
2020-12-31 21:16:51 +00:00
parent e0062af10c
commit 598ab32345
10 changed files with 150 additions and 349 deletions

View File

@@ -56,12 +56,12 @@ public class WifiUtils {
}
/**
* Check if the hotspot password is valid.
* Check if the WPA2-PSK hotspot password is valid.
*/
public static boolean isHotspotPasswordValid(String password, int securityType) {
public static boolean isHotspotWpa2PasswordValid(String password) {
final SoftApConfiguration.Builder configBuilder = new SoftApConfiguration.Builder();
try {
configBuilder.setPassphrase(password, securityType);
configBuilder.setPassphrase(password, SoftApConfiguration.SECURITY_TYPE_WPA2_PSK);
} catch (IllegalArgumentException e) {
return false;
}