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: hci: ipc: assert when building HCI IPC driver w/o ACL FC #86005

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PavelVPV
Copy link
Collaborator

@PavelVPV PavelVPV commented Feb 19, 2025

The HCI IPC driver is not reliable and can lead to lost ACL data if built without Controller-to-Host ACL flow control.

This commit prevents building HCI IPC driver and hci_ipc sample without CONFIG_BT_HCI_ACL_FLOW_CONTROL.

Relates to #86091

Comment on lines 21 to 23
#if defined(CONFIG_BT_CONN)
BUILD_ASSERT(IS_ENABLED(CONFIG_BT_HCI_ACL_FLOW_CONTROL),
"IPC transport is not reliable without Controller-to-Host ACL flow control");
#endif

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
#if defined(CONFIG_BT_CONN)
BUILD_ASSERT(IS_ENABLED(CONFIG_BT_HCI_ACL_FLOW_CONTROL),
"IPC transport is not reliable without Controller-to-Host ACL flow control");
#endif
BUILD_ASSERT(!IS_ENABLED(CONFIG_BT_CONN) || IS_ENABLED(CONFIG_BT_HCI_ACL_FLOW_CONTROL),
"IPC transport is not reliable without Controller-to-Host ACL flow control");

Comment on lines 32 to 34
#if defined(CONFIG_BT_CONN)
BUILD_ASSERT(IS_ENABLED(CONFIG_BT_HCI_ACL_FLOW_CONTROL),
"IPC transport is not reliable without Controller-to-Host ACL flow control");
#endif

Copy link
Contributor

Choose a reason for hiding this comment

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

similar to above

@PavelVPV PavelVPV force-pushed the fail_hci_ipc_build_without_acl_flow_control branch from 28536c8 to b92b51a Compare March 3, 2025 12:34
@PavelVPV PavelVPV requested a review from cvinayak March 3, 2025 12:36
The HCI IPC driver is not reliable and can lead to lost ACL data if
built without Controller-to-Host ACL flow control.

This commit prevents building HCI IPC driver and hci_ipc sample without
CONFIG_BT_HCI_ACL_FLOW_CONTROL.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
@PavelVPV PavelVPV force-pushed the fail_hci_ipc_build_without_acl_flow_control branch from b92b51a to ae1bab2 Compare March 3, 2025 12:47
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.

Thanks for the clarification :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

7 participants