Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce34f22b authored by Vinit Deshapnde's avatar Vinit Deshapnde Committed by Android Git Automerger
Browse files

am 27271f67: am a5fb1204: Merge "Fix incorrect exception being thrown from...

am 27271f67: am a5fb1204: Merge "Fix incorrect exception being thrown from WifiConfiguration" into klp-dev

* commit '27271f67':
  Fix incorrect exception being thrown from WifiConfiguration
parents 3df66d27 27271f67
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -554,8 +554,8 @@ public class WifiConfiguration implements Parcelable {

    /** @hide */
    public int getAuthType() {
        if (allowedKeyManagement.cardinality() > 1) {
            throw new IllegalStateException("More than one auth type set");
        if (isValid() == false) {
            throw new IllegalStateException("Invalid configuration");
        }
        if (allowedKeyManagement.get(KeyMgmt.WPA_PSK)) {
            return KeyMgmt.WPA_PSK;