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

Commit dfbf21e5 authored by Robert Greenwalt's avatar Robert Greenwalt Committed by Android Git Automerger
Browse files

am 6f8fb959: Merge "Enable Opportunistic Key Caching on WPA2-Enterprise Networks"

* commit '6f8fb959':
  Enable Opportunistic Key Caching on WPA2-Enterprise Networks
parents 509b51aa 6f8fb959
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -85,6 +85,7 @@ public class WifiEnterpriseConfig implements Parcelable {
    private static final String ENGINE_KEY          = "engine";
    private static final String ENGINE_ID_KEY       = "engine_id";
    private static final String PRIVATE_KEY_ID_KEY  = "key_id";
    private static final String OPP_KEY_CACHING     = "proactive_key_caching";

    private HashMap<String, String> mFields = new HashMap<String, String>();
    private X509Certificate mCaCert;
@@ -273,6 +274,7 @@ public class WifiEnterpriseConfig implements Parcelable {
            case Eap.TLS:
            case Eap.TTLS:
                mFields.put(EAP_KEY, Eap.strings[eapMethod]);
                mFields.put(OPP_KEY_CACHING, "1");
                break;
            default:
                throw new IllegalArgumentException("Unknown EAP method");