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

Commit 1ad187a9 authored by Hsin-chen Chuang's avatar Hsin-chen Chuang
Browse files

le_scanning_manager: Ignore Scan Response when Passive scanning

By definition Passive scanning won't send out SCAN_REQ PDUs so shouldn't
wait for Scan Response.

This patch only affects the ChromeOS device using Legacy scan because
it's the only use case of LeScanningFilterPolicy::ACCEPT_ALL + Passive;
On the other platforms Vendor command + FILTER_ACCEPT_LIST_ONLY is
usually preferred.

Bug: 323979740
Tag: #floss
Test: mmm packages/modules/Bluetooth
Test: Manual & Tauto test with https://r.android.com/c/2952830
Flag: EXEMPT, Floss-only changes because Android always uses Active scan
Change-Id: I8277abad492a06a60810d44066043b14c235b8c4
parent c58e6099
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -457,6 +457,7 @@ struct LeScanningManager::impl : public LeAddressManagerCallback {
    // with hardware-filtering features should we ignore waiting for scan response, and make sure
    // scan responses are still reported too.
    scanning_reassembler_.SetIgnoreScanResponses(
        le_scan_type_ == LeScanType::PASSIVE ||
        filter_policy_ == LeScanningFilterPolicy::FILTER_ACCEPT_LIST_ONLY);

    std::optional<LeScanningReassembler::CompleteAdvertisingData> processed_report =