summaryrefslogtreecommitdiffstats
path: root/wifi/java
diff options
context:
space:
mode:
authorNalla Kartheek <karthe@codeaurora.org>2015-12-08 15:00:44 +0530
committerSteve Kondik <steve@cyngn.com>2016-01-23 23:28:19 -0800
commit54dabe78d6f837f2acd66b0315840e33facec551 (patch)
tree9ad64fbc29ad1c51844cbdb0a83fdae12189af8a /wifi/java
parent7ffd9936a0af138fbd0f50886956e212d771f48a (diff)
downloadframeworks_base-54dabe78d6f837f2acd66b0315840e33facec551.zip
frameworks_base-54dabe78d6f837f2acd66b0315840e33facec551.tar.gz
frameworks_base-54dabe78d6f837f2acd66b0315840e33facec551.tar.bz2
Wi-Fi: Introduce state variable to signify Wi-Fi turn on Fail
This state variable signify that Wi-Fi turn on failed. This information is broadcasted through Wi-Fi state change event. Change-Id: I6b40857ecdbf7d8a106c08d66cc328071cdc5db4 CRs-Fixed: 947716
Diffstat (limited to 'wifi/java')
-rw-r--r--wifi/java/android/net/wifi/WifiManager.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java
index 056ede1..a832c93 100644
--- a/wifi/java/android/net/wifi/WifiManager.java
+++ b/wifi/java/android/net/wifi/WifiManager.java
@@ -188,6 +188,14 @@ public class WifiManager {
public static final int WIFI_STATE_UNKNOWN = 4;
/**
+ * Wi-Fi is in failed state. This state will occur when load driver failed or start
+ * supplicant failed.
+ *
+ * @hide
+ */
+ public static final int WIFI_STATE_FAILED = 5;
+
+ /**
* Broadcast intent action indicating that Wi-Fi AP has been enabled, disabled,
* enabling, disabling, or failed.
*