Bluetooth: audio: ascs: Retry ASE state notifications on error

This adds retry logic for ASE state notifications if failed due to
insufficient number of buffers to send ATT PDU. The state transition is
retried after connection interval delay.

Fixes: #64574
Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
This commit is contained in:
Mariusz Skamra 2023-11-13 10:44:15 +01:00 committed by Carles Cufí
commit ba61420504
2 changed files with 150 additions and 104 deletions

View file

@ -14,7 +14,3 @@ CONFIG_BT_ATT_PREPARE_COUNT=1
CONFIG_BT_EXT_ADV=y
CONFIG_BT_DEVICE_NAME="Unicast Audio Server"
# Due to https://github.com/zephyrproject-rtos/zephyr/issues/64574 we need to increase the number
# of L2CAP buffers
CONFIG_BT_L2CAP_TX_BUF_COUNT=4