Skip to content

Bluetooth: Disconnection due to "No pending ATT request" #87906

@cvinayak

Description

@cvinayak

Describe the bug

LE Audio test ./tests/bsim/bluetooth/audio/test_scripts/cap_unicast_ac_11_ii.sh fails with following error:

d_00: @00:00:04.008515  (CPU:0): [00:00:04.008,514] <dbg> bt_iso: hci_le_set_cig_params: id 0, latency C to P 8, latency P to C 8, interval C to P 7500, interval P to C 7500, sca 0, packing 0, framing 0, num_cis 2
d_00: @00:00:04.008515  (CPU:0): [00:00:04.008,514] <dbg> bt_iso: hci_le_set_cig_params: [0]: id 0, c_phy 2, c_sdu 26, c_rtn 2, p_phy 2, p_sdu 26, p_rtn 2
d_00: @00:00:04.008515  (CPU:0): [00:00:04.008,514] <dbg> bt_iso: hci_le_set_cig_params: [1]: id 1, c_phy 2, c_sdu 26, c_rtn 2, p_phy 2, p_sdu 26, p_rtn 2
d_00: @00:00:04.008515  (CPU:0): Starting 4 streams for ac_11_ii
d_00: @00:00:04.008515 ERROR: (WEST_TOPDIR/zephyr/tests/bsim/bluetooth/audio/src/cap_initiator_unicast_test.c:1164): No sink[1][0] endpoint available
d_00: @00:00:04.008515  The TESTCASE FAILED (test return code 2)

To Reproduce

Update as below:

diff --git a/samples/bluetooth/hci_ipc/nrf5340_cpunet_iso-bt_ll_sw_split.conf b/samples/bluetooth/hci_ipc/nrf5340_cpunet_iso-bt_ll_sw_split.conf
index 21c5ac86e7c..2d956bfe62e 100644
--- a/samples/bluetooth/hci_ipc/nrf5340_cpunet_iso-bt_ll_sw_split.conf
+++ b/samples/bluetooth/hci_ipc/nrf5340_cpunet_iso-bt_ll_sw_split.conf
@@ -19,6 +19,7 @@ CONFIG_BT_BUF_EVT_RX_SIZE=255
 CONFIG_BT_BUF_ACL_RX_SIZE=255
 CONFIG_BT_BUF_ACL_TX_SIZE=251
 CONFIG_BT_BUF_CMD_TX_SIZE=255
+CONFIG_BT_BUF_ACL_TX_COUNT=3
 
 # Host and Controller common dependencies
 CONFIG_BT_BROADCASTER=y

Build:

BOARD=nrf5340bsim/nrf5340/cpuapp ./tests/bsim/bluetooth/audio/compile.sh

Execute:

BOARD=nrf5340bsim/nrf5340/cpuapp ./tests/bsim/bluetooth/audio/test_scripts/cap_unicast_ac_11_ii.sh

Expected behavior

No disconnection and test passes.

Impact

Showstopper

Logs and console output

Environment (please complete the following information):

  • OS: Linux
  • Toolchain: Zephyr SDK 0.16.5-1
  • Commit SHA or Version used: fa45beb

Additional context

Full log:

log.txt

Metadata

Metadata

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions