diff options
author | Roshan Pius <rpius@google.com> | 2017-02-16 09:30:48 -0800 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2017-02-17 08:08:48 -0800 |
commit | cb9565f0cb8fa92346549bcacdfbf91cdf8e6bd3 (patch) | |
tree | 35c3dcaac7538240a22f61eabbb14363947ca2d9 /tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java | |
parent | c75e7b8f0ff1a1e87c77485a08b691b76081adf0 (diff) | |
download | android_frameworks_opt_net_wifi-cb9565f0cb8fa92346549bcacdfbf91cdf8e6bd3.tar.gz android_frameworks_opt_net_wifi-cb9565f0cb8fa92346549bcacdfbf91cdf8e6bd3.tar.bz2 android_frameworks_opt_net_wifi-cb9565f0cb8fa92346549bcacdfbf91cdf8e6bd3.zip |
SupplicantStaIface: Expose the 2 ISupplicant methods
These are 2 methods exposed in the top level ISupplicant object, which
needs to be exposed to WifiNative.
While there,
Add the new EAP phase 2 method conversions in SupplicantStaNetworkHal.
Bug: 33383725
Test: Unit tests
Change-Id: I46abd77b0616e4e3da7e9bbe3d2751e0783e93fe
Diffstat (limited to 'tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java b/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java index fdf3ee370..28587d129 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java @@ -379,6 +379,13 @@ public class WifiConfigurationTestUtil { return config; } + public static WifiEnterpriseConfig createTLSWifiEnterpriseConfigWithAkaPhase2() { + WifiEnterpriseConfig config = new WifiEnterpriseConfig(); + config.setEapMethod(WifiEnterpriseConfig.Eap.TLS); + config.setPhase2Method(WifiEnterpriseConfig.Phase2.AKA); + return config; + } + /** * Asserts that the 2 WifiConfigurations are equal in the elements saved for both backup/restore * and config store. |