linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] Bluetooth: ISO: Avoid creating child socket if PA sync is terminating
@ 2023-12-05 16:11 Iulia Tanasescu
  2023-12-05 16:11 ` [PATCH 1/1] " Iulia Tanasescu
  2023-12-08 15:10 ` [PATCH 0/1] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 5+ messages in thread
From: Iulia Tanasescu @ 2023-12-05 16:11 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: claudia.rosu, mihai-octavian.urzica, silviu.barbulescu,
	vlad.pruteanu, andrei.istodorescu, luiz.dentz, Iulia Tanasescu

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


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH 0/1] Bluetooth: ISO: Avoid creating child socket if PA sync is terminating
@ 2023-11-29 16:28 Iulia Tanasescu
  0 siblings, 0 replies; 5+ messages in thread
From: Iulia Tanasescu @ 2023-11-29 16:28 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: claudia.rosu, mihai-octavian.urzica, silviu.barbulescu,
	vlad.pruteanu, andrei.istodorescu, luiz.dentz, Iulia Tanasescu

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-12-08 15:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-05 16:11 [PATCH 0/1] Bluetooth: ISO: Avoid creating child socket if PA sync is terminating Iulia Tanasescu
2023-12-05 16:11 ` [PATCH 1/1] " Iulia Tanasescu
2023-12-05 17:01   ` bluez.test.bot
2023-12-08 15:10 ` [PATCH 0/1] " patchwork-bot+bluetooth
  -- strict thread matches above, loose matches on Subject: below --
2023-11-29 16:28 Iulia Tanasescu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).