zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.92k stars 6.65k forks source link

Bluetooth: Host: Deprecate `BT_BUF_ACL_RX_COUNT` symbol #81747

Open theob-pro opened 7 hours ago

theob-pro commented 7 hours ago

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.

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.