Commit 7349c857 authored by Make Shi's avatar Make Shi Committed by Benjamin Cabé
Browse files

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: default avatarMake Shi <make.shi@nxp.com>
parent 232ecfd8
Loading
Loading
Loading
Loading
+1 −1
Changes for subsys/bluetooth/host/classic/shell/rfcomm.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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,