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
This commit is contained in:
Vinit Deshpande
2014-09-13 11:10:07 -07:00
parent c0b8cb8910
commit 26a98001ad

View File

@@ -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: