Skip to content

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

@theob-pro

Description

@theob-pro

** 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

Metadata

Metadata

Assignees

Labels

area: Bluetooth HostBluetooth Host (excluding BR/EDR)bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions