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 <lyle.zhu@nxp.com>
This commit is contained in:
parent
50d8cd4c98
commit
d7328eac67
1 changed files with 2 additions and 1 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue