Skip to content

Commit

Permalink
Bluetooth: Host: Set user data size for hfp tx pool
Browse files Browse the repository at this point in the history
The user data size of hfp tx pool is zero.

There is not enough space to put tx_mate.

Use CONFIG_BT_CONN_TX_USER_DATA_SIZE to
set data size of hfp tx pool.

Signed-off-by: Lyle Zhu <[email protected]>
  • Loading branch information
lylezhu2012 authored and carlescufi committed Feb 2, 2024
1 parent 50d8cd4 commit d7328ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion subsys/bluetooth/host/hfp_hf.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ LOG_MODULE_REGISTER(bt_hfp_hf);
struct bt_hfp_hf_cb *bt_hf;

NET_BUF_POOL_FIXED_DEFINE(hf_pool, CONFIG_BT_MAX_CONN + 1,
BT_RFCOMM_BUF_SIZE(BT_HF_CLIENT_MAX_PDU), 0, NULL);
BT_RFCOMM_BUF_SIZE(BT_HF_CLIENT_MAX_PDU),
CONFIG_BT_CONN_TX_USER_DATA_SIZE, NULL);

static struct bt_hfp_hf bt_hfp_hf_pool[CONFIG_BT_MAX_CONN];

Expand Down

0 comments on commit d7328ea

Please sign in to comment.