Skip to content

Bluetooth: Host: ISO not clearing TX context on disconnect #77007

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

Closed
theob-pro opened this issue Aug 13, 2024 · 0 comments · Fixed by #77008
Closed

Bluetooth: Host: ISO not clearing TX context on disconnect #77007

theob-pro opened this issue Aug 13, 2024 · 0 comments · Fixed by #77008
Assignees
Labels
area: Bluetooth Host Bluetooth Host (excluding BR/EDR) bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@theob-pro
Copy link
Collaborator

** Describe the bug **

When disconnected while sending data, if ISO doesn't get the num of completed packets it will not call process_unack_tx and thus will leak TX context.

Fix that by setting the connection state in ISO disconnection which will trigger a call to process_unack_tx.

** To reproduce **

Create an ISO channel that will send data, disconnect before receiving the HCI number of completed packets event.

The following BabbleSim test reproduce the issue: theob-pro@e2d8225

@theob-pro theob-pro added bug The issue is a bug, or the PR is fixing a bug area: Bluetooth Host Bluetooth Host (excluding BR/EDR) labels Aug 13, 2024
@theob-pro theob-pro self-assigned this Aug 13, 2024
@mmahadevan108 mmahadevan108 added the priority: low Low impact/importance bug label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Host Bluetooth Host (excluding BR/EDR) bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants