From dc5abdd80d99be31e1c8b1b81288c6e9f036bc5c Mon Sep 17 00:00:00 2001 From: Rebecca Silberstein Date: Thu, 25 May 2017 01:53:08 -0700 Subject: 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 Merged-In: I67f82525b5c0fa5b81235311988c9b186d16077a Merged-In: Ieff7af7c1ac2113b8044c16a01cad0f96cb70158 Change-Id: I64e1d13a9e422945fe9c4c268c206da365d0a3eb (cherry picked from commit 4ac2cab8fd8cb6ef877f4e5c37f554f1a09b79dc) --- 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 b7fe9c7999b3..2333d7eae1d7 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -377,6 +377,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. -- cgit v1.2.3-59-g8ed1b