summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorPartha N <parthan@gmail.com>2013-05-06 20:20:47 -0700
committerDmitry Shmidt <dimitrysh@google.com>2013-05-08 11:21:31 -0700
commit8d06e430307d07e3d51f381b4c7c89f7d9155133 (patch)
tree97a47ab314d2b69a5ab423a0de9a124c3913a89f /wifi
parentd71bfdabffe7cbfe3b29c1f62c299f11f262e516 (diff)
downloadframeworks_base-8d06e430307d07e3d51f381b4c7c89f7d9155133.zip
frameworks_base-8d06e430307d07e3d51f381b4c7c89f7d9155133.tar.gz
frameworks_base-8d06e430307d07e3d51f381b4c7c89f7d9155133.tar.bz2
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: Partha N <parthan@gmail.com>
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/WifiEnterpriseConfig.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiEnterpriseConfig.java b/wifi/java/android/net/wifi/WifiEnterpriseConfig.java
index 6e3034b..4bee937 100644
--- a/wifi/java/android/net/wifi/WifiEnterpriseConfig.java
+++ b/wifi/java/android/net/wifi/WifiEnterpriseConfig.java
@@ -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");