From ebc5ced56e474e48777194fd6ca349a6cedb1e6f Mon Sep 17 00:00:00 2001 From: xinhe Date: Wed, 22 Apr 2015 15:36:29 -0700 Subject: No Permission check for WiFi RTT Bug:19918231 Change-Id: I98aea756cc15683596096e46da48efe0737ae1d1 --- wifi/java/android/net/wifi/RttManager.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wifi') diff --git a/wifi/java/android/net/wifi/RttManager.java b/wifi/java/android/net/wifi/RttManager.java index d2fb0dd..dde8dba 100644 --- a/wifi/java/android/net/wifi/RttManager.java +++ b/wifi/java/android/net/wifi/RttManager.java @@ -134,6 +134,8 @@ public class RttManager { public static final int REASON_NOT_AVAILABLE = -2; public static final int REASON_INVALID_LISTENER = -3; public static final int REASON_INVALID_REQUEST = -4; + /** Do not have required permission */ + public static final int REASON_PERMISSION_DENIED = -5; public static final String DESCRIPTION_KEY = "android.net.wifi.RttManager.Description"; -- cgit v1.1 From e20b8ad4c43e671b5115cfefe5740b7d9462b685 Mon Sep 17 00:00:00 2001 From: Jan Nordqvist Date: Fri, 24 Apr 2015 13:46:42 -0700 Subject: Changed logging tag. Change-Id: I9a916305910c65425ffe7ea8d5a29dba0ee9a8da --- wifi/java/android/net/wifi/WifiConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wifi') diff --git a/wifi/java/android/net/wifi/WifiConfiguration.java b/wifi/java/android/net/wifi/WifiConfiguration.java index 1521623..feab4b8 100644 --- a/wifi/java/android/net/wifi/WifiConfiguration.java +++ b/wifi/java/android/net/wifi/WifiConfiguration.java @@ -868,7 +868,7 @@ public class WifiConfiguration implements Parcelable { public boolean isValid() { String reason = strIsValid(); if (reason != null) { - Log.e("WFII", "WiFi Config not valid: " + reason); + Log.e(TAG, "WiFi Config not valid: " + reason); return false; } else { -- cgit v1.1