From 723f82f17f6868122cac204964a89bb2f44aa2a1 Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Tue, 8 Sep 2015 16:46:36 +0900 Subject: [PATCH] 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 --- core/java/android/net/ConnectivityManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/java/android/net/ConnectivityManager.java b/core/java/android/net/ConnectivityManager.java index 4055836499..9a2a24128b 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;