-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Bluetooth: Controller: Fix incorrect assertion check #86970
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
Conversation
cvinayak
left a comment
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.
Thank you for the pull request. Changes requested.
Also, update commit title to Bluetooth: Controller: Fix incorrect assertion check
definition of adv and connectable variables where guarded by an ifdef and then used without a guard leading to build errors when CONFIG_ASSERT was disabled and CONFIG_BT_PERIPHERAL enabled. Signed-off-by: Gerhard Jörges <joerges@metratec.com>
c3587b2 to
a9808af
Compare
|
I removed the assertion ifdef |
|
Apparently |
Something went wrong again, LL_ASSERT should not become empty macro, this is essential. I will have to bisect and figure out when did |
|
when
and zephyr/subsys/bluetooth/common/assert.h Line 39 in 2e23dfd
and finally zephyr/include/zephyr/sys/__assert.h Line 142 in 2e23dfd
|
|
Yes, I looked into these. And, we always default zephyr/subsys/bluetooth/common/Kconfig Lines 295 to 300 in 2e23dfd
Hence, all is well as |
|
An application can always keep We can review and reduce those as well to return error code if they are in the API call path in thread execution context, right @jhedberg and @alwa-nordic ? |
Semantically, most of those are justifiably asserts. There maybe one or two that could be converted into runtime checks, but not all. One valid question is why do we have |
|
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
Definition of
advandconnectablevariables where guarded by an ifdef and then used without a guard leading to build errors whenCONFIG_ASSERTwas disabled andCONFIG_BT_PERIPHERALenabled.fixes #86855