Skip to content
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

Bluetooth: Controller: Fix BIG Create silently fail on RTN/SDU_interval #49394

Conversation

cvinayak
Copy link
Contributor

Fix BIG Create implementation from silently failing on
values of RTN and SDU_interval that lead to BIG events that
cannot be acheived when using sequential or interleaved
subevents by the Controller Implementation.

Fixes #46186.

Signed-off-by: Vinayak Kariappa Chettimada vich@nordicsemi.no

@cvinayak cvinayak self-assigned this Aug 23, 2022
@cvinayak cvinayak added bug The issue is a bug, or the PR is fixing a bug area: Bluetooth area: Bluetooth Controller area: Bluetooth ISO Bluetooth LE Isochronous Channels labels Aug 23, 2022
@cvinayak cvinayak marked this pull request as ready for review August 23, 2022 07:48
subsys/bluetooth/controller/ll_sw/ull_adv_iso.c Outdated Show resolved Hide resolved
subsys/bluetooth/controller/ll_sw/ull_adv_iso.c Outdated Show resolved Hide resolved
@cvinayak cvinayak force-pushed the github_big_create_param_check_fix branch from 72d73a1 to 9a3b3e7 Compare September 1, 2022 12:37
Thalley
Thalley previously approved these changes Sep 1, 2022
Copy link
Collaborator

@Thalley Thalley left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines 257 to 267
if (latency_packing > sdu_interval) {
ll_rx_link_release(link_cmplt);
ll_rx_link_release(link_term);

return BT_HCI_ERR_INVALID_PARAM;
}
Copy link
Collaborator

@Thalley Thalley Sep 6, 2022

Choose a reason for hiding this comment

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

Can you add a in-code comment about why we are releasing the link if the latency is larger than the SDU interval? I assume it's because that would be impossible to schedule?

Fix BIG Create implementation from silently failing on
values of RTN and SDU_interval that lead to BIG events that
cannot be acheived when using sequential or interleaved
subevents by the Controller Implementation.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
@cvinayak cvinayak force-pushed the github_big_create_param_check_fix branch from 0aefbb8 to e0b4ec1 Compare September 6, 2022 09:38
@carlescufi carlescufi merged commit b8a959e into zephyrproject-rtos:main Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Controller area: Bluetooth ISO Bluetooth LE Isochronous Channels area: Bluetooth bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ISO Broadcaster fails silently on unsupported RTN/SDU_Interval combination
4 participants