diff options
author | Sky Faber <skyf@google.com> | 2014-09-19 18:21:35 -0700 |
---|---|---|
committer | Sky Faber <skyf@google.com> | 2014-09-26 18:32:16 -0700 |
commit | c55cd103708493f9d45122236affbf08b49456f0 (patch) | |
tree | 4b9369b30fa20d1312a2fc857c305b9a459baa6d /wifi | |
parent | 3e3857c4f5d277c69bcb0ff3a581a176f3a84bf8 (diff) | |
download | frameworks_base-c55cd103708493f9d45122236affbf08b49456f0.zip frameworks_base-c55cd103708493f9d45122236affbf08b49456f0.tar.gz frameworks_base-c55cd103708493f9d45122236affbf08b49456f0.tar.bz2 |
User wifi separation feature.
Change-Id: Iab79db10107ab5dbeb469c12621a9a4916bd62c9
Diffstat (limited to 'wifi')
-rw-r--r-- | wifi/java/android/net/wifi/WifiConfiguration.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiConfiguration.java b/wifi/java/android/net/wifi/WifiConfiguration.java index 4e2b64b..6aa4328 100644 --- a/wifi/java/android/net/wifi/WifiConfiguration.java +++ b/wifi/java/android/net/wifi/WifiConfiguration.java @@ -917,6 +917,15 @@ public class WifiConfiguration implements Parcelable { } /** + * Helper function, idenfity if a configuration should be treated as an enterprise network + * @hide + */ + public boolean isEnterprise() { + return allowedKeyManagement.get(KeyMgmt.WPA_EAP) || + allowedKeyManagement.get(KeyMgmt.IEEE8021X); + } + + /** * most recent time we have seen this configuration * @return most recent scanResult * @hide |