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: Controller: Fix missing radio_df_cte_inline_set_enabled #42757

Closed
wants to merge 1 commit into from

Conversation

cvinayak
Copy link
Contributor

Add missing radio_df_cte_inline_set_enabled(false) in the
prepare of Periodic Synchronization Events when CTE
reporting is disabled.

Signed-off-by: Vinayak Kariappa Chettimada [email protected]

lll_df_conf_cte_rx_enable(cfg->slot_durations, cfg->ant_sw_len, cfg->ant_ids,
chan_idx, CTE_INFO_IN_PAYLOAD);
cfg->cte_count = 0;
#endif /* CONFIG_BT_CTLR_DF_SCAN_CTE_RX */
} else if (IS_ENABLED(CONFIG_BT_CTLR_DF_SUPPORT)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

If I'm correct, then radio_df_cte_inline_set_enable(false) should depend on CONFIG_BT_CTLR_DF_SUPPORT.
The CONFIG_BT_CTLR_DF_SCAN_CTE_RX may be disabled while the CONFIG_BT_CTLR_DF_SUPPORT is enabled.
It will allow to synchronize with periodic advertising that includes CTE without sampling of the CTE.

It applies to all places where radio_df_cte_inline_set_enable(false) was added.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated, but should radio_df_cte_inline_set_disable() be used instead of always enabled even when is_enabled is false?

Add missing radio_df_cte_inline_set_enabled(false) in the
prepare of Periodic Synchronization Events when CTE
reporting is disabled.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
@cvinayak
Copy link
Contributor Author

cvinayak commented Apr 6, 2022

No associated issue for these changes, closing.

@cvinayak cvinayak closed this Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants