Skip to content

Commit 792ae68

Browse files
jori-nordicnashif
authored andcommitted
Bluetooth: host: Use correct user_data size for hci_rx_pool
`struct acl_data` is used even when Host flow control is not enabled. It is written to through the `acl(buf)` accessor in `conn.c:hci_acl()`. Hopefully no netbufs were harmed by that :/ Signed-off-by: Jonathan Rico <[email protected]>
1 parent 2e01266 commit 792ae68

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/host

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/buf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ NET_BUF_POOL_FIXED_DEFINE(evt_pool, CONFIG_BT_BUF_EVT_RX_COUNT,
5959
NULL);
6060
#else
6161
NET_BUF_POOL_FIXED_DEFINE(hci_rx_pool, BT_BUF_RX_COUNT,
62-
BT_BUF_RX_SIZE, sizeof(struct bt_buf_data),
62+
BT_BUF_RX_SIZE, sizeof(struct acl_data),
6363
NULL);
6464
#endif /* CONFIG_BT_HCI_ACL_FLOW_CONTROL */
6565

0 commit comments

Comments
 (0)