Skip to content

Bluetooth: Controller: Fix max LL PDU size calculation #93216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions subsys/bluetooth/controller/ll_sw/pdu.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,23 @@
#endif /* !CONFIG_BT_PERIPHERAL */
#endif /* !CONFIG_BT_CTLR_LE_ENC */

/* TODO this could be incorporated in logic above but since PAST receiver and
* sender are separate options this would get a bit complicated
*
* Adjust for LL_PERIODIC_SYNC_IND if ISO support is not enabled.
*/
#if !defined(CONFIG_BT_CTLR_CONN_ISO)
#if defined(CONFIG_BT_PER_ADV_SYNC_TRANSFER_RECEIVER)
#undef PDU_DC_CTRL_RX_SIZE_MAX
#define PDU_DC_CTRL_RX_SIZE_MAX PDU_DATA_LLCTRL_LEN(periodic_sync_ind)
#endif

#if defined(CONFIG_BT_PER_ADV_SYNC_TRANSFER_SENDER)
#undef PDU_DC_CTRL_TX_SIZE_MAX
#define PDU_DC_CTRL_TX_SIZE_MAX PDU_DATA_LLCTRL_LEN(periodic_sync_ind)
#endif
#endif

#else /* !CONFIG_BT_CONN */
#define PDU_DC_CTRL_TX_SIZE_MAX 0U
#define PDU_DC_CTRL_RX_SIZE_MAX 0U
Expand Down