OSDN Git Service

WifiManager: add unspecified ip mode
authorRebecca Silberstein <silberst@google.com>
Wed, 10 May 2017 05:58:01 +0000 (22:58 -0700)
committerErik Kline <ek@google.com>
Thu, 1 Jun 2017 12:18:14 +0000 (21:18 +0900)
Add an unspecified IP mode that allows WifiServiceImpl to clear state
in the interface-based IP mode tracking.

Bug: 31466854
Test: frameworks/base/wifi/tests/runtests.sh
Merged-In: I0d1db7ecb9cf7edd74d95f73d88b23571b87a27f
Merged-In: Iaa1474bd24d63e957ae82745b66c7571a5f18433
Change-Id: I15485cdab95ed4308cf5c2877fba40eac82bf162
(cherry picked from commit bf4754361877ad93a92bea64407974f26eb7c494)

wifi/java/android/net/wifi/WifiManager.java

index 2333d7e..053fcfb 100644 (file)
@@ -462,6 +462,15 @@ public class WifiManager {
     public static final int SAP_START_FAILURE_NO_CHANNEL = 1;
 
     /**
+     * Interface IP mode unspecified.
+     *
+     * @see updateInterfaceIpState(String, int)
+     *
+     * @hide
+     */
+    public static final int IFACE_IP_MODE_UNSPECIFIED = -1;
+
+    /**
      * Interface IP mode for configuration error.
      *
      * @see updateInterfaceIpState(String, int)