-
Notifications
You must be signed in to change notification settings - Fork 7k
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
base: main
Are you sure you want to change the base?
bluetooth: hci: ipc: assert when building HCI IPC driver w/o ACL FC #86005
Conversation
4feebdd
to
28536c8
Compare
drivers/bluetooth/hci/ipc.c
Outdated
#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 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#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"); |
samples/bluetooth/hci_ipc/src/main.c
Outdated
#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 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similar to above
28536c8
to
b92b51a
Compare
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>
b92b51a
to
ae1bab2
Compare
There was a problem hiding this 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 :)
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