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
9.74k stars 6k forks source link

Bluetooth: CAP: Fix issue with parallel CAP discover #72211

Closed Thalley closed 1 week ago

Thalley commented 2 weeks ago

The bt_cap_common_discover function relied on a global variable used to indicate that a discovery was in process. This global variable prevented multiple discoveries to take place on multiple ACL connections, where the intention was to stop multiple discoveries on the same ACL. This has been fixed by moving the variable into the struct bt_cap_common_client, so that it applies per connection, rather than a global check.

fixes https://github.com/zephyrproject-rtos/zephyr/issues/70821 fixes https://github.com/zephyrproject-rtos/zephyr/issues/71982

Thalley commented 2 weeks ago

Converted to draft as another issue was found

Thalley commented 1 week ago

This also fixed https://github.com/zephyrproject-rtos/zephyr/issues/44867