Skip to content

Commit 7349c85

Browse files
makeshikartben
authored andcommitted
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 <[email protected]>
1 parent 232ecfd commit 7349c85

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/host/classic/shell

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/classic/shell/rfcomm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
#define DATA_MTU 48
3535

36-
NET_BUF_POOL_FIXED_DEFINE(pool, 1, DATA_MTU, 0, NULL);
36+
NET_BUF_POOL_FIXED_DEFINE(pool, 1, DATA_MTU, CONFIG_BT_CONN_TX_USER_DATA_SIZE, NULL);
3737

3838
static struct bt_sdp_attribute spp_attrs[] = {
3939
BT_SDP_NEW_SERVICE,

0 commit comments

Comments
 (0)