Skip to content

Commit bbc17a6

Browse files
committed
[nrf fromlist] Bluetooth: Tester: Unify L2CAP and ACL bufs configuration
This should all be unified so that tests run with similar setup on all boards. Upstream PR #: 80911 Signed-off-by: Lang Xie <[email protected]>
1 parent 5975fc8 commit bbc17a6

File tree

3 files changed

+9
-20
lines changed

3 files changed

+9
-20
lines changed
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
11
# Apply this overlay at tester build, not hci_ipc build
2-
CONFIG_BT_MAX_CONN=3
3-
CONFIG_BT_MAX_PAIRED=3
4-
# Those have to be the same as in the controller (hci_ipc)
5-
CONFIG_BT_BUF_EVT_RX_COUNT=16
6-
CONFIG_BT_BUF_EVT_RX_SIZE=255
7-
CONFIG_BT_BUF_CMD_TX_SIZE=255
8-
CONFIG_BT_BUF_ACL_TX_SIZE=251
9-
CONFIG_BT_BUF_ACL_RX_SIZE=255

tests/bluetooth/tester/overlay-le-audio.conf

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE=22
1212
# Ring buffer for streaming ISO data
1313
CONFIG_RING_BUFFER=y
1414

15-
# These have to be the same as in the controller (hci_ipc)
16-
CONFIG_BT_MAX_CONN=3
17-
CONFIG_BT_MAX_PAIRED=3
18-
CONFIG_BT_BUF_EVT_RX_COUNT=16
19-
CONFIG_BT_BUF_EVT_RX_SIZE=255
20-
CONFIG_BT_BUF_CMD_TX_SIZE=255
21-
2215
# When initiating Codec Config by server for 3 ASEs one by one, MTU buffers
2316
# were freed too slow. The bt_bap_stream_ops.configured callback comes earlier.
2417
CONFIG_BT_L2CAP_TX_BUF_COUNT=10
@@ -49,9 +42,6 @@ CONFIG_BT_BAP_BROADCAST_SNK_SUBGROUP_COUNT=2
4942
CONFIG_BT_PER_ADV_SYNC_TRANSFER_SENDER=y
5043
CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE=255
5144
CONFIG_BT_PER_ADV_SYNC_TRANSFER_RECEIVER=y
52-
# BASS notifications need higher MTU
53-
CONFIG_BT_L2CAP_TX_MTU=255
54-
CONFIG_BT_BUF_ACL_RX_SIZE=255
5545

5646
# ASCS
5747
CONFIG_BT_ASCS=y

tests/bluetooth/tester/prj.conf

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ CONFIG_BT_BONDABLE=y
1616
CONFIG_BT_ATT_PREPARE_COUNT=12
1717
CONFIG_BT_GATT_CLIENT=y
1818
CONFIG_BT_L2CAP_DYNAMIC_CHANNEL=y
19+
CONFIG_BT_L2CAP_TX_MTU=255
1920
CONFIG_BT_L2CAP_SEG_RECV=y
2021
CONFIG_BT_L2CAP_RECONFIGURE_EXPLICIT=y
2122
CONFIG_BT_DEVICE_NAME="Tester"
@@ -27,8 +28,8 @@ CONFIG_BT_L2CAP_ECRED=y
2728
CONFIG_BT_EATT_MAX=5
2829
CONFIG_BT_FILTER_ACCEPT_LIST=y
2930
CONFIG_BT_EATT_AUTO_CONNECT=n
30-
CONFIG_BT_MAX_CONN=2
31-
CONFIG_BT_MAX_PAIRED=2
31+
CONFIG_BT_MAX_CONN=3
32+
CONFIG_BT_MAX_PAIRED=3
3233
CONFIG_BT_GATT_NOTIFY_MULTIPLE=y
3334
CONFIG_BT_ATT_RETRY_ON_SEC_ERR=n
3435
CONFIG_BT_GATT_DYNAMIC_DB=y
@@ -55,3 +56,9 @@ CONFIG_BT_DIS_SERIAL_NUMBER=y
5556
CONFIG_BT_DIS_FW_REV=y
5657
CONFIG_BT_DIS_HW_REV=y
5758
CONFIG_BT_DIS_SW_REV=y
59+
60+
CONFIG_BT_BUF_EVT_RX_COUNT=16
61+
CONFIG_BT_BUF_EVT_RX_SIZE=255
62+
CONFIG_BT_BUF_CMD_TX_SIZE=255
63+
CONFIG_BT_BUF_ACL_TX_SIZE=251
64+
CONFIG_BT_BUF_ACL_RX_SIZE=255

0 commit comments

Comments
 (0)