BLE: Fix not freed onfound/onlost filter when stop scan
ScanManager doesn't freed allocated onfound/onlost filters when stop LE scan.
Therefore, scan always fails to start in next time when overflows of
onfound/onlost filters over total number of trackable advertisements.
This issue happens when apps try to scan with special callback types.
(e.g CALLBACK_TYPE_FIRST_MATCH, CALLBACK_TYPE_MATCH_LOST)
This patch retrieves 'client.settings' & 'client.filters' information
from set 'mRegularScanClients' to free onfound/onlost filters.
Bug: 143097315
Test: Scan with callback type 'CALLBACK_TYPE_MATCH_LOST' using BLE test app.
Change-Id: I6f1a134ee46931b8f4f6c763359ae1d84ae030eb
Signed-off-by:
KimJeongYeon <jeongyeon.kim@samsung.com>
Loading
Please register or sign in to comment