Bluetooth: host: Fix size of L2CAP disconnect request pool

Fix size of L2CAP disconnect request buffer pool which did not include
the size of the L2CAP signal header.

Regression from: 3346aa4d39

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2021-01-18 10:34:40 +01:00 committed by Carles Cufí
commit 66427d370b

View file

@ -60,6 +60,7 @@
*/ */
NET_BUF_POOL_FIXED_DEFINE(disc_pool, 1, NET_BUF_POOL_FIXED_DEFINE(disc_pool, 1,
BT_L2CAP_BUF_SIZE( BT_L2CAP_BUF_SIZE(
sizeof(struct bt_l2cap_sig_hdr) +
sizeof(struct bt_l2cap_disconn_req)), sizeof(struct bt_l2cap_disconn_req)),
NULL); NULL);