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

Skip to content
Commit ad4bb564 authored by Omair Kamil's avatar Omair Kamil
Browse files

Use a system property to drive the maximum number of GATT connections.

A few notes:
- The maximum is capped at 16 regardless of the property. With static allocation
  and subsequent initialization of resources bluetooth will time out if this is set
  too high.
- The default (and minimum) max value is still 7.
- Other modules can have their own limitations. HID will only allow 14 LE connected
  devices.
- gatt_utils.cc references the property-driven value everywhere for consistency, but
  it's probably good enough to just do so in gatt_allocate_tcb_by_bdaddr

Bug: 283344957
Test: atest BumbleBluetoothTests
Flag: EXEMPT - changes in #define directive can't be guarded
Change-Id: I858d6f5ec9947031276b6a72ecbf6c5d50fbed1e
parent e5b34d16
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