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

Commit 0fd3b1be authored by Vinit Deshapnde's avatar Vinit Deshapnde
Browse files

Fix incorrect exception being thrown from WifiConfiguration

Bug: 10817189

Change-Id: Ib2985f50080cb9d983a6de6ce668223e8782c3b6
parent 6df7d4a5
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;