diff options
| author | 2017-05-31 21:30:07 -0700 | |
|---|---|---|
| committer | 2017-05-31 22:51:06 -0700 | |
| commit | 544eff2d23fdb73b993a2525414326fbd44d3428 (patch) | |
| tree | 7575cb6f06dc8976c280bc06f2974aaea20e4bbf | |
| parent | 388ceaa37ab04c01659b029f9066c4d8ce276188 (diff) | |
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
| -rw-r--r-- | wifi/java/android/net/wifi/WifiConfiguration.java | 2 |
1 files changed, 2 insertions, 0 deletions
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; |