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

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

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

* commit 'a5fb1204':
  Fix incorrect exception being thrown from WifiConfiguration
parents a7055b01 a5fb1204
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;