Skip to content

Commit

Permalink
Bluetooth: Shell: BR: Set user data size for rfcomm tx pool
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
makeshi authored and kartben committed Dec 16, 2024
1 parent 232ecfd commit 7349c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/host/classic/shell/rfcomm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7349c85

Please sign in to comment.