diff options
| author | 2017-03-31 01:51:30 +0000 | |
|---|---|---|
| committer | 2017-03-31 01:51:30 +0000 | |
| commit | 1fc10c0729e07719e84c48cac82fbb21ec353c65 (patch) | |
| tree | bbdc13bda3203f452acbabfb9706c46eb6a0ef9f | |
| parent | a084e3283f3af1fadb23f3c2e81dcb37b451fb46 (diff) | |
| parent | e23b2c6c59b68afd8744e51975c3c06132539613 (diff) | |
Merge "Introduce Authentication Failure reason codes"
am: e23b2c6c59
Change-Id: I5e002f4b341f2a295ed6d8a2213bc9401fcde008
| -rw-r--r-- | wifi/java/android/net/wifi/WifiManager.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index 824c436ac9fd..b79ecdd40d90 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -82,6 +82,34 @@ public class WifiManager { public static final int ERROR_AUTHENTICATING = 1; /** + * The reason code if there is no error during authentication. + * It could also imply that there no authentication in progress, + * this reason code also serves as a reset value. + * @hide + */ + public static final int ERROR_AUTH_FAILURE_NONE = 0; + + /** + * The reason code if there was a timeout authenticating. + * @hide + */ + public static final int ERROR_AUTH_FAILURE_TIMEOUT = 1; + + /** + * The reason code if there was a wrong password while + * authenticating. + * @hide + */ + public static final int ERROR_AUTH_FAILURE_WRONG_PSWD = 2; + + /** + * The reason code if there was EAP failure while + * authenticating. + * @hide + */ + public static final int ERROR_AUTH_FAILURE_EAP_FAILURE = 3; + + /** * Broadcast intent action indicating whether Wi-Fi scanning is allowed currently * @hide */ @@ -497,6 +525,16 @@ public class WifiManager { public static final String EXTRA_SUPPLICANT_ERROR = "supplicantError"; /** + * The lookup key for a {@link SupplicantState} describing the supplicant + * error reason if any + * Retrieve with + * {@link android.content.Intent#getIntExtra(String, int)}. + * @see #ERROR_AUTH_FAILURE_#REASON_CODE + * @hide + */ + public static final String EXTRA_SUPPLICANT_ERROR_REASON = "supplicantErrorReason"; + + /** * Broadcast intent action indicating that the configured networks changed. * This can be as a result of adding/updating/deleting a network. If * {@link #EXTRA_MULTIPLE_NETWORKS_CHANGED} is set to true the new configuration |