public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] Bluetooth: hci_conn: Fix connection cleanup with BIG with 2 or more BIS
@ 2025-10-22 20:29 Luiz Augusto von Dentz
  2025-10-22 20:50 ` Paul Menzel
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Luiz Augusto von Dentz @ 2025-10-22 20:29 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This fixes bis_cleanup not considering connections in BT_OPEN state
before attempting to remove the BIG causing the following error:

btproxy[20110]: < HCI Command: LE Terminate Broadcast Isochronous Group (0x08|0x006a) plen 2
        BIG Handle: 0x01
        Reason: Connection Terminated By Local Host (0x16)
> HCI Event: Command Status (0x0f) plen 4
      LE Terminate Broadcast Isochronous Group (0x08|0x006a) ncmd 1
        Status: Unknown Advertising Identifier (0x42)

Fixes: fa224d0c094a ("Bluetooth: ISO: Reassociate a socket with an active BIS")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
---
 net/bluetooth/hci_conn.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index d6162a95048e..0b86aaddfb02 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -843,6 +843,13 @@ static void bis_cleanup(struct hci_conn *conn)
 		if (bis)
 			return;
 
+		bis = hci_conn_hash_lookup_big_state(hdev,
+						     conn->iso_qos.bcast.big,
+						     BT_OPEN,
+						     HCI_ROLE_MASTER);
+		if (bis)
+			return;
+
 		hci_le_terminate_big(hdev, conn);
 	} else {
 		hci_le_big_terminate(hdev, conn->iso_qos.bcast.big,
-- 
2.51.0


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

* Re: [PATCH v1] Bluetooth: hci_conn: Fix connection cleanup with BIG with 2 or more BIS
  2025-10-22 20:29 [PATCH v1] Bluetooth: hci_conn: Fix connection cleanup with BIG with 2 or more BIS Luiz Augusto von Dentz
@ 2025-10-22 20:50 ` Paul Menzel
  2025-10-22 21:01 ` [v1] " bluez.test.bot
  2025-10-23 21:40 ` [PATCH v1] " patchwork-bot+bluetooth
  2 siblings, 0 replies; 4+ messages in thread
From: Paul Menzel @ 2025-10-22 20:50 UTC (permalink / raw)
  To: Luiz Augusto von Dentz, linux-bluetooth

Dear Luiz,


Thank you for your patch.

Am 22.10.25 um 22:29 schrieb Luiz Augusto von Dentz:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
> 
> This fixes bis_cleanup not considering connections in BT_OPEN state
> before attempting to remove the BIG causing the following error:
> 
> btproxy[20110]: < HCI Command: LE Terminate Broadcast Isochronous Group (0x08|0x006a) plen 2
>          BIG Handle: 0x01
>          Reason: Connection Terminated By Local Host (0x16)
>> HCI Event: Command Status (0x0f) plen 4
>        LE Terminate Broadcast Isochronous Group (0x08|0x006a) ncmd 1
>          Status: Unknown Advertising Identifier (0x42)
> 
> Fixes: fa224d0c094a ("Bluetooth: ISO: Reassociate a socket with an active BIS")
> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
> ---
>   net/bluetooth/hci_conn.c | 7 +++++++
>   1 file changed, 7 insertions(+)
> 
> diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
> index d6162a95048e..0b86aaddfb02 100644
> --- a/net/bluetooth/hci_conn.c
> +++ b/net/bluetooth/hci_conn.c
> @@ -843,6 +843,13 @@ static void bis_cleanup(struct hci_conn *conn)
>   		if (bis)
>   			return;
>   
> +		bis = hci_conn_hash_lookup_big_state(hdev,
> +						     conn->iso_qos.bcast.big,
> +						     BT_OPEN,
> +						     HCI_ROLE_MASTER);
> +		if (bis)
> +			return;
> +
>   		hci_le_terminate_big(hdev, conn);
>   	} else {
>   		hci_le_big_terminate(hdev, conn->iso_qos.bcast.big,

Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>


Kind regards,

Paul

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

* RE: [v1] Bluetooth: hci_conn: Fix connection cleanup with BIG with 2 or more BIS
  2025-10-22 20:29 [PATCH v1] Bluetooth: hci_conn: Fix connection cleanup with BIG with 2 or more BIS Luiz Augusto von Dentz
  2025-10-22 20:50 ` Paul Menzel
@ 2025-10-22 21:01 ` bluez.test.bot
  2025-10-23 21:40 ` [PATCH v1] " patchwork-bot+bluetooth
  2 siblings, 0 replies; 4+ messages in thread
From: bluez.test.bot @ 2025-10-22 21:01 UTC (permalink / raw)
  To: linux-bluetooth, luiz.dentz

[-- Attachment #1: Type: text/plain, Size: 2377 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1014692

---Test result---

Test Summary:
CheckPatch                    PENDING   0.44 seconds
GitLint                       PENDING   0.38 seconds
SubjectPrefix                 PASS      0.07 seconds
BuildKernel                   PASS      25.32 seconds
CheckAllWarning               PASS      27.05 seconds
CheckSparse                   PASS      30.04 seconds
BuildKernel32                 PASS      24.40 seconds
TestRunnerSetup               PASS      489.89 seconds
TestRunner_l2cap-tester       PASS      23.74 seconds
TestRunner_iso-tester         PASS      82.67 seconds
TestRunner_bnep-tester        PASS      6.06 seconds
TestRunner_mgmt-tester        FAIL      114.28 seconds
TestRunner_rfcomm-tester      PASS      9.24 seconds
TestRunner_sco-tester         PASS      14.35 seconds
TestRunner_ioctl-tester       PASS      10.02 seconds
TestRunner_mesh-tester        FAIL      11.46 seconds
TestRunner_smp-tester         PASS      8.44 seconds
TestRunner_userchan-tester    PASS      6.36 seconds
IncrementalBuild              PENDING   1.04 seconds

Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:

##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:

##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:
Total: 490, Passed: 484 (98.8%), Failed: 2, Not Run: 4

Failed Test Cases
Read Exp Feature - Success                           Failed       0.103 seconds
LL Privacy - Set Device Flag 1 (Device Privacy)      Failed       0.162 seconds
##############################
Test: TestRunner_mesh-tester - FAIL
Desc: Run mesh-tester with test-runner
Output:
Total: 10, Passed: 8 (80.0%), Failed: 2, Not Run: 0

Failed Test Cases
Mesh - Send cancel - 1                               Timed out    1.883 seconds
Mesh - Send cancel - 2                               Timed out    1.997 seconds
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:



---
Regards,
Linux Bluetooth


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

* Re: [PATCH v1] Bluetooth: hci_conn: Fix connection cleanup with BIG with 2 or more BIS
  2025-10-22 20:29 [PATCH v1] Bluetooth: hci_conn: Fix connection cleanup with BIG with 2 or more BIS Luiz Augusto von Dentz
  2025-10-22 20:50 ` Paul Menzel
  2025-10-22 21:01 ` [v1] " bluez.test.bot
@ 2025-10-23 21:40 ` patchwork-bot+bluetooth
  2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+bluetooth @ 2025-10-23 21:40 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: linux-bluetooth

Hello:

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

On Wed, 22 Oct 2025 16:29:41 -0400 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
> 
> This fixes bis_cleanup not considering connections in BT_OPEN state
> before attempting to remove the BIG causing the following error:
> 
> btproxy[20110]: < HCI Command: LE Terminate Broadcast Isochronous Group (0x08|0x006a) plen 2
>         BIG Handle: 0x01
>         Reason: Connection Terminated By Local Host (0x16)
> > HCI Event: Command Status (0x0f) plen 4
>       LE Terminate Broadcast Isochronous Group (0x08|0x006a) ncmd 1
>         Status: Unknown Advertising Identifier (0x42)
> 
> [...]

Here is the summary with links:
  - [v1] Bluetooth: hci_conn: Fix connection cleanup with BIG with 2 or more BIS
    https://git.kernel.org/bluetooth/bluetooth-next/c/990c0549b5f1

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2025-10-23 21:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-22 20:29 [PATCH v1] Bluetooth: hci_conn: Fix connection cleanup with BIG with 2 or more BIS Luiz Augusto von Dentz
2025-10-22 20:50 ` Paul Menzel
2025-10-22 21:01 ` [v1] " bluez.test.bot
2025-10-23 21:40 ` [PATCH v1] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox