Merge "cts: setBssid supported for tethered mode hotspot" into rvc-dev am: add2e447d3 am: c882db23d0 am: 3830e0e337

Change-Id: Ic6d8d5cd57183e1292775ef610537868f75c44af
This commit is contained in:
Les Lee
2020-03-26 01:03:20 +00:00
committed by Automerger Merge Worker

View File

@@ -1403,13 +1403,13 @@ public class WifiManagerTest extends AndroidTestCase {
mWifiManager.setSoftApConfiguration(targetConfig);
// Bssid set dodesn't support for tethered hotspot
SoftApConfiguration currentConfig = mWifiManager.getSoftApConfiguration();
assertNull(currentConfig.getBssid());
compareSoftApConfiguration(targetConfig, currentConfig);
}
private void compareSoftApConfiguration(SoftApConfiguration currentConfig,
SoftApConfiguration testSoftApConfig) {
assertEquals(currentConfig.getSsid(), testSoftApConfig.getSsid());
assertEquals(currentConfig.getBssid(), testSoftApConfig.getBssid());
assertEquals(currentConfig.getSecurityType(), testSoftApConfig.getSecurityType());
assertEquals(currentConfig.getPassphrase(), testSoftApConfig.getPassphrase());
assertEquals(currentConfig.isHiddenSsid(), testSoftApConfig.isHiddenSsid());