Skip to content

Commit d7328ea

Browse files
lylezhu2012carlescufi
authored andcommitted
Bluetooth: Host: Set user data size for hfp tx pool
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]>
1 parent 50d8cd4 commit d7328ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

subsys/bluetooth/host/hfp_hf.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ LOG_MODULE_REGISTER(bt_hfp_hf);
3535
struct bt_hfp_hf_cb *bt_hf;
3636

3737
NET_BUF_POOL_FIXED_DEFINE(hf_pool, CONFIG_BT_MAX_CONN + 1,
38-
BT_RFCOMM_BUF_SIZE(BT_HF_CLIENT_MAX_PDU), 0, NULL);
38+
BT_RFCOMM_BUF_SIZE(BT_HF_CLIENT_MAX_PDU),
39+
CONFIG_BT_CONN_TX_USER_DATA_SIZE, NULL);
3940

4041
static struct bt_hfp_hf bt_hfp_hf_pool[CONFIG_BT_MAX_CONN];
4142

0 commit comments

Comments
 (0)