Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6e70877 authored by Sundeep Ghuman's avatar Sundeep Ghuman Committed by android-build-merger
Browse files

Merge "APs from old scans should not have RSSI values set." into oc-dev am: 65c00b2f

am: 4127bdaf

Change-Id: Iee8ffdde7970a5c623f4820d3e27531df2beb795
parents 5b6d397e 4127bdaf
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -540,8 +540,11 @@ public class AccessPoint implements Comparable<AccessPoint> {
            }
        }

        // Only replace the previous value if we have a recent scan result to use
        if (seen != 0) {
            mSeen = seen;
        }
    }

    /**
     * Returns if the network is marked metered. Metering can be marked through its config in
@@ -984,8 +987,10 @@ public class AccessPoint implements Comparable<AccessPoint> {
        security = getSecurity(result);
        if (security == SECURITY_PSK)
            pskType = getPskType(result);
        mRssi = result.level;
        mSeen = result.timestamp;

        mScanResultCache.put(result.BSSID, result);
        updateRssi();
        mSeen = result.timestamp; // even if the timestamp is old it is still valid
    }

    public void saveWifiState(Bundle savedState) {