diff options
author | xinhe <xinhe@google.com> | 2015-07-13 15:31:06 -0700 |
---|---|---|
committer | xinhe <xinhe@google.com> | 2015-07-13 17:44:40 -0700 |
commit | e0ec6ba9cb6494df147479316c24defb167ab2b1 (patch) | |
tree | 31d92406dc049ef373432a1f8358eac7c8b10a9e /wifi/java/android/net | |
parent | 6795a2aeafa6df8a5e8e3045d29991d33c8db33f (diff) | |
download | frameworks_base-e0ec6ba9cb6494df147479316c24defb167ab2b1.zip frameworks_base-e0ec6ba9cb6494df147479316c24defb167ab2b1.tar.gz frameworks_base-e0ec6ba9cb6494df147479316c24defb167ab2b1.tar.bz2 |
Need to disable 5GHz bands for WiFi tethering in Japan
b/22396383
Change-Id: I61efef1babaab756425e6958843dfb9ad47b46cd
Diffstat (limited to 'wifi/java/android/net')
-rw-r--r-- | wifi/java/android/net/wifi/WifiManager.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index e5a1d02..f91e0e2 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -206,6 +206,16 @@ public class WifiManager { * @hide */ public static final String EXTRA_WIFI_AP_STATE = "wifi_state"; + + /** + * The look up key for an int that indicates why softAP started failed + * currently support general and no_channel + * @see #SAP_START_FAILURE_GENERAL + * @see #SAP_START_FAILURE_NO_CHANNEL + * + * @hide + */ + public static final String EXTRA_WIFI_AP_FAILURE_REASON = "wifi_ap_error_code"; /** * The previous Wi-Fi state. * @@ -264,6 +274,20 @@ public class WifiManager { public static final int WIFI_AP_STATE_FAILED = 14; /** + * If WIFI AP start failed, this reason code means there is no legal channel exists on + * user selected band by regulatory + * + * @hide + */ + public static final int SAP_START_FAILURE_GENERAL= 0; + + /** + * All other reason for AP start failed besides SAP_START_FAILURE_GENERAL + * + * @hide + */ + public static final int SAP_START_FAILURE_NO_CHANNEL = 1; + /** * Broadcast intent action indicating that a connection to the supplicant has * been established (and it is now possible * to perform Wi-Fi operations) or the connection to the supplicant has been |