From 4ac2cab8fd8cb6ef877f4e5c37f554f1a09b79dc Mon Sep 17 00:00:00 2001 From: Rebecca Silberstein Date: Thu, 25 May 2017 01:53:08 -0700 Subject: [PATCH] WifiManager: add iface name and mode labels Connectivity service needs to get the interface name and intended ip configuration mode for softap. This CL adds the interface name and softap target mode variables to use to insert the extra info into the wifi ap state change broadcast. Note: additional CLs are needed to verify the iface name and mode. The mode tracking is still in progress. Bug: 62076211 Test: frameworks/base/wifi/tests/runtests.sh Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Test: manually verified the name in the broadcast Change-Id: I64e1d13a9e422945fe9c4c268c206da365d0a3eb --- wifi/java/android/net/wifi/WifiManager.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index 25d61af4fabf2..cfc1fd252fb3a 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -382,6 +382,21 @@ public class WifiManager { */ @SystemApi public static final String EXTRA_PREVIOUS_WIFI_AP_STATE = "previous_wifi_state"; + /** + * The interface used for the softap. + * + * @hide + */ + public static final String EXTRA_WIFI_AP_INTERFACE_NAME = "wifi_ap_interface_name"; + /** + * The intended ip mode for this softap. + * @see #IFACE_IP_MODE_TETHERED + * @see #IFACE_IP_MODE_LOCAL_ONLY + * + * @hide + */ + public static final String EXTRA_WIFI_AP_MODE = "wifi_ap_mode"; + /** * Wi-Fi AP is currently being disabled. The state will change to * {@link #WIFI_AP_STATE_DISABLED} if it finishes successfully.