summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2017-08-04 20:43:55 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-08-04 20:43:55 +0000
commit2343695189af037ec9ba7e601db94b1ae159b959 (patch)
treec7a0cdbd98fefb316a9a8040570702351c63f4b4 /service
parentabf203702036541f4a7704a630edf59d310dd2c3 (diff)
parent806de232ff2a295ef27ff4450e4bdf5e989528bd (diff)
Merge "WifiStateMachine: Always return a copy of WifiInfo" into oc-dr1-dev
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiStateMachine.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/WifiStateMachine.java b/service/java/com/android/server/wifi/WifiStateMachine.java
index b2a649cea..2d24d2002 100644
--- a/service/java/com/android/server/wifi/WifiStateMachine.java
+++ b/service/java/com/android/server/wifi/WifiStateMachine.java
@@ -3139,11 +3139,11 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss
}
private WifiInfo getWiFiInfoForUid(int uid) {
+ WifiInfo result = new WifiInfo(mWifiInfo);
if (Binder.getCallingUid() == Process.myUid()) {
- return mWifiInfo;
+ return result;
}
- WifiInfo result = new WifiInfo(mWifiInfo);
result.setMacAddress(WifiInfo.DEFAULT_MAC_ADDRESS);
IBinder binder = mFacade.getService("package");