mbox series

[0/1] Bluetooth: ISO: Avoid creating child socket if PA sync is terminating

Message ID 20231205161140.2855-1-iulia.tanasescu@nxp.com
Headers show
Series Bluetooth: ISO: Avoid creating child socket if PA sync is terminating | expand

Message

Iulia Tanasescu Dec. 5, 2023, 4:11 p.m. UTC
When a PA sync socket is closed, the associated hcon is also unlinked
and cleaned up. If there are no other hcons marked with the
HCI_CONN_PA_SYNC flag, HCI_OP_LE_PA_TERM_SYNC is sent to controller.

Between the time of the command and the moment PA sync is terminated
in controller, residual BIGInfo reports might continue to come.
This causes a new PA sync hcon to be added, and a new socket to be
notified to user space.

This commit fixs this by adding a flag on a Broadcast listening
socket to mark when the PA sync child has been closed.

This flag is checked when BIGInfo reports are indicated in
iso_connect_ind, to avoid recreating a hcon and socket if
residual reports arrive before PA sync is terminated.

Iulia Tanasescu (1):
  Bluetooth: ISO: Avoid creating child socket if PA sync is terminating

 net/bluetooth/iso.c | 51 ++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 48 insertions(+), 3 deletions(-)


base-commit: ab3d463ded5dfd81227fc998910c40913ce17616

Comments

patchwork-bot+bluetooth@kernel.org Dec. 8, 2023, 3:10 p.m. UTC | #1
Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Tue,  5 Dec 2023 18:11:39 +0200 you wrote:
> When a PA sync socket is closed, the associated hcon is also unlinked
> and cleaned up. If there are no other hcons marked with the
> HCI_CONN_PA_SYNC flag, HCI_OP_LE_PA_TERM_SYNC is sent to controller.
> 
> Between the time of the command and the moment PA sync is terminated
> in controller, residual BIGInfo reports might continue to come.
> This causes a new PA sync hcon to be added, and a new socket to be
> notified to user space.
> 
> [...]

Here is the summary with links:
  - [1/1] Bluetooth: ISO: Avoid creating child socket if PA sync is terminating
    https://git.kernel.org/bluetooth/bluetooth-next/c/1581c2ec0214

You are awesome, thank you!