summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-08-20 03:25:21 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-08-20 03:25:21 +0000
commit65721f5147d0718c922d86e9029ad3787965053b (patch)
treeb317930e89970c76c88b893e73abdc03740db74b
parentfd3eea1d817896bc0e36e06f6d06bdb554e3c511 (diff)
parent73535c4e918eb582092c740326b160777b44e077 (diff)
downloadandroid_frameworks_opt_net_wifi-65721f5147d0718c922d86e9029ad3787965053b.tar.gz
android_frameworks_opt_net_wifi-65721f5147d0718c922d86e9029ad3787965053b.tar.bz2
android_frameworks_opt_net_wifi-65721f5147d0718c922d86e9029ad3787965053b.zip
Snap for 5814541 from 73535c4e918eb582092c740326b160777b44e077 to qt-qpr1-release
Change-Id: Ic49f42c5a256935b0d0ff6acc58fbdcbe3c5f57d
-rw-r--r--service/java/com/android/server/wifi/rtt/RttServiceImpl.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/service/java/com/android/server/wifi/rtt/RttServiceImpl.java b/service/java/com/android/server/wifi/rtt/RttServiceImpl.java
index 19ae1540e..d69ce8f00 100644
--- a/service/java/com/android/server/wifi/rtt/RttServiceImpl.java
+++ b/service/java/com/android/server/wifi/rtt/RttServiceImpl.java
@@ -1178,16 +1178,11 @@ public class RttServiceImpl extends IWifiRttManager.Stub {
"ResponderLocation: lci/lcr parser failed exception -- " + e);
}
// Clear LCI and LCR data if the location data should not be retransmitted,
- // has a retention expiration time, contains no useful data, or did not parse.
- if (responderLocation == null) {
+ // has a retention expiration time, contains no useful data, or did not parse,
+ // or the caller is not in a privileged context.
+ if (responderLocation == null || !isCalledFromPrivilegedContext) {
lci = null;
lcr = null;
- } else if (!isCalledFromPrivilegedContext) {
- // clear the raw lci and lcr buffers and civic location data if the
- // caller is not in a privileged context.
- lci = null;
- lcr = null;
- responderLocation.setCivicLocationSubelementDefaults();
}
if (resultForRequest.successNumber <= 1
&& resultForRequest.distanceSdInMm != 0) {