From 1fdb6151dcc85c990483492e2d9cbd9b7c243164 Mon Sep 17 00:00:00 2001 From: Rebecca Silberstein Date: Wed, 31 May 2017 21:41:51 -0700 Subject: WifiApConfigStore: set LOHS wifi config networkId The WifiConfiguration object used to connect to a locally started LOHS needs a networkId that signals to ConnectivityService that the application wants to use the LOHS to talk to co-located devices. Bug: 62076211 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh -e class com.android.server.wifi.WifiApConfigStoreTest Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh -e class com.android.server.wifi.WifiServiceImplTest Test: manually tested with in-progress integration test Change-Id: Ic316250184eae0f04dc0fb83efb9710d5d65f0af --- tests/wifitests/src/com/android/server/wifi/WifiApConfigStoreTest.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/wifitests/src/com/android/server/wifi/WifiApConfigStoreTest.java b/tests/wifitests/src/com/android/server/wifi/WifiApConfigStoreTest.java index d4a3ff549..2d3b06695 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiApConfigStoreTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiApConfigStoreTest.java @@ -202,5 +202,7 @@ public class WifiApConfigStoreTest { public void generateLocalOnlyHotspotConfigIsValid() { WifiConfiguration config = WifiApConfigStore.generateLocalOnlyHotspotConfig(mContext); verifyDefaultApConfig(config, TEST_DEFAULT_HOTSPOT_SSID); + // The LOHS config should also have a specific network id set - check that as well. + assertEquals(WifiConfiguration.LOCAL_ONLY_NETWORK_ID, config.networkId); } } -- cgit v1.2.3