diff options
author | Roy Want <roywant@google.com> | 2019-08-19 13:22:31 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-08-19 13:22:31 -0700 |
commit | 4fd01682f9d6bc990d36a1016935bad48c395cc8 (patch) | |
tree | 42bb35de5761a60fda2b999d465e32d00a6e8315 | |
parent | b5633dd5af8474e96bee4318b079bf477d62714c (diff) | |
parent | 4c940a14b706f93e2094e1d36caef62f060fd8b5 (diff) | |
download | wifi-4fd01682f9d6bc990d36a1016935bad48c395cc8.tar.gz |
Merge "Removing privileged context requirement for civic location (server)" into qt-r1-dev
am: 4c940a14b7
Change-Id: Ic68852768c3f8e593c5b960990cecd3e9b0b7efa
-rw-r--r-- | service/java/com/android/server/wifi/rtt/RttServiceImpl.java | 11 |
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) { |