summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Lorenzo Colitti <lorenzo@google.com> 2015-09-08 16:46:36 +0900
committer Lorenzo Colitti <lorenzo@google.com> 2015-09-09 00:16:57 +0900
commit9d1284eba79d8c0ffebf5387fad3e4a8889b38e1 (patch)
tree2cc1236e0f33916c5db7fbaa570d314fcf4452df
parent9acca09527eedfd5e9b2797eec4864fb46a699d7 (diff)
Add an error code for generic hardware error.
This is necessary because currently the wifi code just returns whatever hardware-specific integer it gets back from the HAL, which is bad because that will be interpreted by the caller as one of the error codes defined in this class. In parallel we'll also modify the wifi code to return this new error code if the hardware returns an error. Bug: 21405946 Change-Id: Ic9fa1193ced69a4e7ff543e397221c89b10a5a13
-rw-r--r--core/java/android/net/ConnectivityManager.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/net/ConnectivityManager.java b/core/java/android/net/ConnectivityManager.java
index 405583649957..9a2a24128b92 100644
--- a/core/java/android/net/ConnectivityManager.java
+++ b/core/java/android/net/ConnectivityManager.java
@@ -1243,6 +1243,8 @@ public class ConnectivityManager {
/** The hardware does not support this request. */
public static final int ERROR_HARDWARE_UNSUPPORTED = -30;
+ /** The hardware returned an error. */
+ public static final int ERROR_HARDWARE_ERROR = -31;
public static final int NATT_PORT = 4500;