CONFIG_BT=y CONFIG_BT_CENTRAL=y CONFIG_BT_PERIPHERAL=y CONFIG_BT_DEVICE_NAME="L2CAP stress test" CONFIG_BT_EATT=n CONFIG_BT_L2CAP_ECRED=n CONFIG_BT_SMP=y # Next config depends on it CONFIG_BT_L2CAP_DYNAMIC_CHANNEL=y # Disable auto-initiated procedures so they don't # mess with the test's execution. CONFIG_BT_AUTO_PHY_UPDATE=n CONFIG_BT_AUTO_DATA_LEN_UPDATE=n CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n # L2CAP MPS # 23+27+27=77 makes exactly three full packets CONFIG_BT_L2CAP_TX_MTU=77 # Use this to send L2CAP PDUs without any fragmentation. # In this particular case, we prefer fragmenting to test that code path. # CONFIG_BT_BUF_ACL_TX_SIZE=81 # L2CAP PDUs will be fragmented in 3 ACL packets. CONFIG_BT_BUF_ACL_TX_SIZE=27 CONFIG_BT_BUF_ACL_TX_COUNT=4 # The minimum value for this is # L2AP MPS + L2CAP header (4) CONFIG_BT_BUF_ACL_RX_SIZE=81 # Governs BT_CONN_TX_MAX, and so must be >= than the max number of # peers, since we attempt to send one SDU per peer. The test execution # is a bit slowed down by having this at the very minimum, but we want # to keep it that way as to stress the stack as much as possible. CONFIG_BT_L2CAP_TX_BUF_COUNT=6 CONFIG_BT_CTLR_DATA_LENGTH_MAX=27 CONFIG_BT_CTLR_RX_BUFFERS=10 CONFIG_BT_MAX_CONN=10 CONFIG_LOG=y CONFIG_ASSERT=y CONFIG_NET_BUF_POOL_USAGE=y