— a/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
+++ b/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateMachine.java
@@ -2160,8 +2160,17 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiRss
public List syncGetScanResultsList() {
synchronized (mScanResultsLock) {
List scanList = new ArrayList();
-
ScanResult temp = null;
-
for (ScanDetail result : mScanResults) {
-
scanList.add(new ScanResult(result.getScanResult()));
-
temp =