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

Commit 9df79043 authored by Mitchell Wills's avatar Mitchell Wills
Browse files

Don't cache ScanResults in WifiTracker if there is no SSID

Bug: 23528076
Change-Id: I118cfafb526fe760bf1d545e09a1559e3867ce06
parent f6f73004
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -258,6 +258,9 @@ public class WifiTracker {
        mScanId++;
        final List<ScanResult> newResults = mWifiManager.getScanResults();
        for (ScanResult newResult : newResults) {
            if (newResult.SSID == null || newResult.SSID.isEmpty()) {
                continue;
            }
            mScanResultCache.put(newResult.BSSID, newResult);
            mSeenBssids.put(newResult.BSSID, mScanId);
        }