-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Bluetooth: Controller: Uninitialized parameters in functions #89306
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
Comments
|
@cvinayak , so you mean that enabling this config is mandatory but what if it is disabled. Do we really need to enable it? Also when enabling it, it assigns a certain pointer to lazy pointer, meaning that the address of lazy will not be changed. |
It is mandatory |
Thank you, the issue is resolved, but if this config is mandatory why it is not by default enabled? |
It is already mandatory as
|
Hello, in file ull_adv_sync.c mainly in the following function(https://github.com/zephyrproject-rtos/zephyr/blob/main/subsys/bluetooth/controller/ll_sw/ull_adv_sync.c#L2675), as u can see for example lazy parameter is only defined and not initialized, which will take any garbage value, but it must start from zero because it affects on the event_counter, so is this a bug or what?
static void mfy_sync_offset_get(void *param)
{
struct ll_adv_set *adv = param;
struct lll_adv_sync *lll_sync;
struct ll_adv_sync_set *sync;
struct pdu_adv_sync_info *si;
uint32_t sync_remainder_us;
uint32_t aux_remainder_us;
uint32_t ticks_to_expire;
uint32_t ticks_current;
struct pdu_adv *pdu;
uint32_t remainder;
uint8_t chm_first;
uint8_t ticker_id;
uint16_t lazy;
uint8_t retry;
uint8_t id;
...
}
Thank you!
The text was updated successfully, but these errors were encountered: