Skip to content

Commit 32861b7

Browse files
committed
Bluetooth: Host: Fix redundant ACL Rx buffer allocation
HCI ACL Rx buffer count is not required in addition, the calculated BT_BUF_ACL_RX_COUNT is sufficient for L2CAP recombination. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
1 parent 77aff10 commit 32861b7

File tree

1 file changed

+2
-3
lines changed
  • subsys/bluetooth/host

1 file changed

+2
-3
lines changed

subsys/bluetooth/host/buf.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ static void evt_pool_destroy(struct net_buf *buf)
8383
buf_rx_freed_notify(BT_BUF_EVT);
8484
}
8585

86-
NET_BUF_POOL_DEFINE(acl_in_pool, (BT_BUF_ACL_RX_COUNT_EXTRA + BT_BUF_HCI_ACL_RX_COUNT),
87-
BT_BUF_ACL_SIZE(CONFIG_BT_BUF_ACL_RX_SIZE), sizeof(struct bt_conn_rx),
88-
acl_in_pool_destroy);
86+
NET_BUF_POOL_DEFINE(acl_in_pool, BT_BUF_ACL_RX_COUNT, BT_BUF_ACL_SIZE(CONFIG_BT_BUF_ACL_RX_SIZE),
87+
sizeof(struct bt_conn_rx), acl_in_pool_destroy);
8988

9089
NET_BUF_POOL_FIXED_DEFINE(evt_pool, CONFIG_BT_BUF_EVT_RX_COUNT, BT_BUF_EVT_RX_SIZE, 0,
9190
evt_pool_destroy);

0 commit comments

Comments
 (0)