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

Commit 397741ea authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Reject SUITE_B_192 network creation for non EAP-TLS"

parents 9943f149 f2b52be4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -678,6 +678,12 @@ public class WifiConfigController implements TextWatcher,
                config.enterpriseConfig = new WifiEnterpriseConfig();
                int eapMethod = mEapMethodSpinner.getSelectedItemPosition();
                int phase2Method = mPhase2Spinner.getSelectedItemPosition();
                if (mAccessPointSecurity == AccessPoint.SECURITY_EAP_SUITE_B) {
                    if (eapMethod != WIFI_EAP_METHOD_TLS) {
                        Log.e(TAG, "WPA3-Enterprise 192-bit EAP method must be EAP-TLS");
                        return null;
                    }
                }
                config.enterpriseConfig.setEapMethod(eapMethod);
                switch (eapMethod) {
                    case Eap.PEAP: