diff options
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiStateMachine.java | 4 |
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"); |