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

Skip to content
Commit 171968e8 authored by Yun-Hao Chung's avatar Yun-Hao Chung Committed by Yun-hao Chung
Browse files

Floss: Only enable page scan when necessary

Currently we always enable page scan upon adapter is on. This causes
some chipset, ex. QCA6174A5, to have performance drop on inquiry
compairing to BlueZ.

Since page scan is used to allow classic device to reconnect, this
CL make Floss to only enable page scan when
1. there is at least 1 non-connected, bonded classic device, or
2. there is at least 1 l2cap or rfcomm socket listening.
This aligns with BlueZ.

Bug: 321519705
Test: manual test
Test: run tauto.bluetooth_AdapterCLHealth.cl_adapter_pairing_test.floss on dewatt
Test: m -j
Tag: #floss
Flag: EXEMPT, Floss only change
Change-Id: I9b804745c1836089e854206dd4b35e5f31cdf08e
parent ab8f9b20
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment