Skip to content

Conversation

@cvinayak
Copy link
Contributor

Fix maximum radio packet size configuration to use 255 bytes
for Extended Scanning and Periodic Synchronization.

Signed-off-by: Vinayak Kariappa Chettimada [email protected]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to redefine PDU_AC_PAYLOAD_SIZE_MAX if ext scanner is enabled since this will also update PDU_RX_NODE_POOL_ELEMENT_SIZE (<- PDU_ADVERTIZE_SIZE <- PDU_AC_LL_SIZE_MAX <- PDU_AC_PAYLOAD_SIZE_MAX) - otherwise we may receive PDU and corrupt some memory outside buffer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I will review the Rx Pool element size, and update this PR later today.

Minor rearrange of rx packet set statements after radio
configuration function calls.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Fix maximum radio packet size configuration to use 255 bytes
for Extended Scanning and Periodic Synchronization.

Add a Kconfig option so that application can reduce RAM
usage if a specific user scenario can live with smaller PDU
receptions.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Remove unused legacy PDU size extra defines.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Copy link
Contributor

@andrzej-kaczmarek andrzej-kaczmarek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested, lgtm

@cvinayak cvinayak added this to the v2.7.0 milestone Aug 26, 2021
@nashif nashif merged commit 2e9f6d0 into zephyrproject-rtos:main Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants