Bluetooth: Host: Deprecate BT_BUF_ACL_RX_COUNT
symbol
Because the number of ACL RX buffers must be at least the number of maximum connections plus one, increasing `CONFIG_BT_MAX_CONN` could inadvertently lead to a build failure if the number of ACL RX buffers is not also increased. This dependency may not be obvious to users. To address this issue, this commit deprecates the `CONFIG_BT_BUF_RX_COUNT` Kconfig symbol and computes the value in `buf.h` using the new `BT_BUF_RX_COUNT` define. Note that the default value and the minimum range value have been changed to 0 to "disable" the option. Additionally, to allow users to increase the number of ACL RX buffers, this commit introduces the new `CONFIG_BT_BUF_RX_COUNT_EXTRA` Kconfig symbol. The value of this symbol will be added to the computed value of `BT_BUF_RX_COUNT`. The configurations of tests and samples have been updated to reflect these changes. Signed-off-by: Théo Battrel <theo.battrel@nordicsemi.no>
This commit is contained in:
parent
9b19a90daa
commit
66ff97e69b
26 changed files with 68 additions and 53 deletions
|
@ -153,6 +153,19 @@ Bluetooth Classic
|
|||
Bluetooth Host
|
||||
==============
|
||||
|
||||
* :kconfig:option:`CONFIG_BT_BUF_ACL_RX_COUNT` has been deprecated. The number of ACL RX buffers is
|
||||
now computed internally and is equal to :kconfig:option:`CONFIG_BT_MAX_CONN` + 1. If an application
|
||||
needs more buffers, it can use the new :kconfig:option:`CONFIG_BT_BUF_ACL_RX_COUNT_EXTRA` to add
|
||||
additional ones.
|
||||
|
||||
e.g. if :kconfig:option:`CONFIG_BT_MAX_CONN` was ``3`` and
|
||||
:kconfig:option:`CONFIG_BT_BUF_ACL_RX_COUNT` was ``7`` then
|
||||
:kconfig:option:`CONFIG_BT_BUF_ACL_RX_COUNT_EXTRA` should be set to ``7 - (3 + 1) = 3``.
|
||||
|
||||
.. warning::
|
||||
|
||||
The default value of :kconfig:option:`CONFIG_BT_BUF_ACL_RX_COUNT` has been set to 0.
|
||||
|
||||
Bluetooth Crypto
|
||||
================
|
||||
|
||||
|
|
|
@ -77,6 +77,9 @@ Bluetooth
|
|||
|
||||
* Host
|
||||
|
||||
* :kconfig:option:`CONFIG_BT_BUF_ACL_RX_COUNT` has been deprecated and
|
||||
:kconfig:option:`CONFIG_BT_BUF_ACL_RX_COUNT_EXTRA` has been added.
|
||||
|
||||
* HCI Drivers
|
||||
|
||||
Boards & SoC Support
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue