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: Remove assign to terminate_ack #59612

Closed
wants to merge 1 commit into from

Conversation

mku514k
Copy link
Contributor

@mku514k mku514k commented Jun 22, 2023

Assignment to conn->central.terminate_ack is not accessible after 2ada005.
Remove dead code.

Fixes #58971

Copy link
Contributor

@cvinayak cvinayak left a comment

Choose a reason for hiding this comment

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

Remove the definition too from ull_conn_types.h

Assignment to conn->central.terminate_ack is not accessible after
2ada005.
Remove dead code.

Signed-off-by: Mateusz Kusiak <[email protected]>
#if defined(CONFIG_BT_CENTRAL)
struct {
#if defined(CONFIG_BT_CTLR_CONN_META)
uint8_t is_must_expire:1;
Copy link
Contributor

Choose a reason for hiding this comment

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

@mtpr-ot can this be removed?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we would need to remove the full "must-expire" feature first, as there are dependencies in ULL. It's used for calculating the latency.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't know to what extent the feature is used by other uses/vendors, but we're not using it anymore. However, the MUST_EXPIRE feature ties into the current ticker implementation, so it may be a larger overhaul to safely remove.

@github-actions
Copy link

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.

@github-actions github-actions bot added the Stale label Aug 31, 2023
@github-actions github-actions bot closed this Sep 15, 2023
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.

[Coverity CID: 318608] Logically dead code in subsys/bluetooth/controller/ll_sw/ull_conn.c
4 participants