From 7349c8572d3ed509ec82ac4dcd50714a8386def6 Mon Sep 17 00:00:00 2001 From: Make Shi Date: Wed, 11 Dec 2024 22:10:45 +0800 Subject: [PATCH] Bluetooth: Shell: BR: Set user data size for rfcomm tx pool The user data size of the RFCOMM tx pool is zero. There is not enough space to put the tx_meta data. Use CONFIG_BT_CONN_TX_USER_DATA_SIZE to set the data size for the RFCOMM tx pool. Signed-off-by: Make Shi --- subsys/bluetooth/host/classic/shell/rfcomm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/classic/shell/rfcomm.c b/subsys/bluetooth/host/classic/shell/rfcomm.c index c55cba57133f57..15bc21c74c761c 100644 --- a/subsys/bluetooth/host/classic/shell/rfcomm.c +++ b/subsys/bluetooth/host/classic/shell/rfcomm.c @@ -33,7 +33,7 @@ #define DATA_MTU 48 -NET_BUF_POOL_FIXED_DEFINE(pool, 1, DATA_MTU, 0, NULL); +NET_BUF_POOL_FIXED_DEFINE(pool, 1, DATA_MTU, CONFIG_BT_CONN_TX_USER_DATA_SIZE, NULL); static struct bt_sdp_attribute spp_attrs[] = { BT_SDP_NEW_SERVICE,