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

Commit 38b5f856 authored by Nitin Arora's avatar Nitin Arora Committed by Gerrit - the friendly Code Review server
Browse files

Bluetooth: Allow all pass filter if filter value is empty

This change ensures that the ALL pass filter is created only
if the filter size is 0 or empty and removes incorrect logic
that prevents adding more than 2 filters for batch scan or
regular scan

CRs-Fixed: 752797
Change-Id: I43502267bfc2c303ff0ca60cf9498eae04953ce9
parent 69a644f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -748,7 +748,7 @@ public class ScanManager {
            if (client.filters == null || client.filters.isEmpty()) {
                return true;
            }
            return client.filters.size() < mClientFilterIndexMap.size();
            return false;
        }

        private void addFilterToController(int clientIf, ScanFilterQueue.Entry entry,