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

Commit a5fb1204 authored by Vinit Deshapnde's avatar Vinit Deshapnde Committed by Android (Google) Code Review
Browse files

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

parents 5006eb75 0fd3b1be
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;