cts: Use set/getPassphrase to replace set/getWpa2Passphrase

Bug: 142752869
Test: atest
android.net.wifi.cts.WifiManagerTest#testStartLocalOnlyHotspotSingleRequestByApps
android.net.wifi.cts.WifiManagerTest#testStartLocalOnlyHotspotSuccess
android.net.wifi.cts.WifiManagerTest#testStartLocalOnlyHotspotWithConfig

Change-Id: Iea9f797373b9b8ebae90428edb2da8b1f3d48efb
This commit is contained in:
lesl
2020-01-09 19:10:43 +08:00
parent f7d2ff895e
commit 142df96ebf

View File

@@ -740,7 +740,7 @@ public class WifiManagerTest extends AndroidTestCase {
SoftApConfiguration customConfig = new SoftApConfiguration.Builder()
.setBssid(TEST_MAC)
.setSsid(TEST_SSID_UNQUOTED)
.setWpa2Passphrase(TEST_PASSPHRASE)
.setPassphrase(TEST_PASSPHRASE, SoftApConfiguration.SECURITY_TYPE_WPA2_PSK)
.build();
TestExecutor executor = new TestExecutor();
TestLocalOnlyHotspotCallback callback = new TestLocalOnlyHotspotCallback(mLOHSLock);