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

Commit 26a98001 authored by Vinit Deshpande's avatar Vinit Deshpande
Browse files

Allow creating EAP_TLS network without specifying Phase2.None

Phase2 isn't required for EAP_TLS networks, and it is possible
for a developer to miss it. We are requiring it for internal
book keeping - so this change just sets Phase2 to 'None' when
EAP_TLS is set on the configuration.

Bug: 17043082
Change-Id: I5a8e0a3a236d0dfd1295584de55d5b9a1b76b483
parent c0b8cb89
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -271,9 +271,11 @@ public class WifiEnterpriseConfig implements Parcelable {
    public void setEapMethod(int eapMethod) {
        switch (eapMethod) {
            /** Valid methods */
            case Eap.TLS:
                setPhase2Method(Phase2.NONE);
                /* fall through */
            case Eap.PEAP:
            case Eap.PWD:
            case Eap.TLS:
            case Eap.TTLS:
            case Eap.SIM:
            case Eap.AKA: