From 544eff2d23fdb73b993a2525414326fbd44d3428 Mon Sep 17 00:00:00 2001 From: Rebecca Silberstein Date: Wed, 31 May 2017 21:30:07 -0700 Subject: WifiConfiguration: add local only networkId When applications start LOHS, they need a way to connect to the network on the same device. The WifiConfiguration.networkId will be set to the newly defined value to serve as a signal to ConnectivityService that this request is for a local only network connection. Bug: 62076211 Test: frameworks/base/wifi/tests/runtests.sh Change-Id: Iab5240a7b4f526f8bc72dd44cdba59e65faedcd1 --- wifi/java/android/net/wifi/WifiConfiguration.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wifi/java/android/net/wifi/WifiConfiguration.java b/wifi/java/android/net/wifi/WifiConfiguration.java index f7333e281982..91fc2f7ce773 100644 --- a/wifi/java/android/net/wifi/WifiConfiguration.java +++ b/wifi/java/android/net/wifi/WifiConfiguration.java @@ -67,6 +67,8 @@ public class WifiConfiguration implements Parcelable { public static final String updateIdentiferVarName = "update_identifier"; /** {@hide} */ public static final int INVALID_NETWORK_ID = -1; + /** {@hide} */ + public static final int LOCAL_ONLY_NETWORK_ID = -2; /** {@hide} */ private String mPasspointManagementObjectTree; -- cgit v1.2.3-59-g8ed1b