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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user