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

Commit 8d06e430 authored by Partha N's avatar Partha N Committed by Dmitry Shmidt
Browse files

Enable Opportunistic Key Caching on WPA2-Enterprise Networks



Add a "proactive_key_caching=1" line to every network segment config that represents a
WPA2-Enterprise network. This enables Opportunistic Key Caching for all eligible
WLANs.

Change-Id: Ia529dcd1dee7a21a68c80de05a9f590ddd944d4c
Signed-off-by: default avatarPartha N <parthan@gmail.com>
parent d71bfdab
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");