diff options
author | Peter Qiu <zqiu@google.com> | 2017-03-23 16:10:57 -0700 |
---|---|---|
committer | Peter Qiu <zqiu@google.com> | 2017-03-29 10:25:56 -0700 |
commit | 2aa7cc7c13207c3afa3ef428ec1c8cdc1893c50c (patch) | |
tree | 89cf6ad66987cf1f0b8a9a3fc7cf874b8b7b15fd /tests | |
parent | bb2fdf553e6580923e1dc3e6ac90ca777c5d7226 (diff) |
hotspot2: set domain_suffix_match for Passpoint network
This is needed to be compliant with the Hotspot 2.0 spec,
was missed during the refactoring.
Bug: 36569007
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: Verify Passpoint network connections
Change-Id: Idf1c5ac565d48a38f87f2e2aba824c7cab8c9e9a
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/hotspot2/PasspointProviderTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/hotspot2/PasspointProviderTest.java b/tests/wifitests/src/com/android/server/wifi/hotspot2/PasspointProviderTest.java index 7551bc049..afa04b549 100644 --- a/tests/wifitests/src/com/android/server/wifi/hotspot2/PasspointProviderTest.java +++ b/tests/wifitests/src/com/android/server/wifi/hotspot2/PasspointProviderTest.java @@ -650,6 +650,7 @@ public class PasspointProviderTest { assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)); assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); assertEquals(realm, wifiEnterpriseConfig.getRealm()); + assertEquals(fqdn, wifiEnterpriseConfig.getDomainSuffixMatch()); assertEquals("anonymous@" + realm, wifiEnterpriseConfig.getAnonymousIdentity()); assertEquals(WifiEnterpriseConfig.Eap.TTLS, wifiEnterpriseConfig.getEapMethod()); assertEquals(WifiEnterpriseConfig.Phase2.MSCHAPV2, wifiEnterpriseConfig.getPhase2Method()); @@ -711,6 +712,7 @@ public class PasspointProviderTest { assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)); assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); assertEquals(realm, wifiEnterpriseConfig.getRealm()); + assertEquals(fqdn, wifiEnterpriseConfig.getDomainSuffixMatch()); assertEquals("anonymous@" + realm, wifiEnterpriseConfig.getAnonymousIdentity()); assertEquals(WifiEnterpriseConfig.Eap.TLS, wifiEnterpriseConfig.getEapMethod()); assertEquals(CLIENT_CERTIFICATE_ALIAS, wifiEnterpriseConfig.getClientCertificateAlias()); @@ -759,6 +761,7 @@ public class PasspointProviderTest { assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)); assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); assertEquals(realm, wifiEnterpriseConfig.getRealm()); + assertEquals(fqdn, wifiEnterpriseConfig.getDomainSuffixMatch()); assertEquals(WifiEnterpriseConfig.Eap.SIM, wifiEnterpriseConfig.getEapMethod()); assertEquals(imsi, wifiEnterpriseConfig.getPlmn()); } |