Unreachable code #50967
Replies: 4 comments 7 replies
-
@alwa-nordic @jori-nordic could you check this? |
Beta Was this translation helpful? Give feedback.
-
Looking at the supposed the change in 6c40427 I'm wondering if this was actually just a wrong assumption about how the code is supposed to work, and possibly that commit should be reverted and another fix is needed to address the RPA timeout issue that it was trying to address. |
Beta Was this translation helpful? Give feedback.
-
@cvinayak I can see that 49014 is a correct bug report. This appears to be a regression since zephyr 3.0.0, where this works correctly. The best thing would be to revert your fix, find the regression and apply the fix based on that.
This has nothing to do with the BT spec, but the zephyr Bluetooth API. Let's clear up some things related to the word "legacy". When you start an advertiser using the legacy API then the OOB information is provided by The new bug now is that You can verify this bug like this: Using the nRF Sniffer for Bluetooth LE.
The advertiser starts using On zephyr 3.0.0 release this works as expected. Reverting the fix 6c40427 shows that the RPA is not updated, neither on calling bt_le_oob_get_local, or on an RPA timeout. |
Beta Was this translation helpful? Give feedback.
-
Bisect shows this as the commit that broke the RPA timeout invalidation: 4e924b6 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I think the following part of the code isn't reachable
zephyr/subsys/bluetooth/host/id.c
Line 298 in 7c3bf20
It contradicts with another condition at the beginning of the function
zephyr/subsys/bluetooth/host/id.c
Line 288 in 7c3bf20
Beta Was this translation helpful? Give feedback.
All reactions