Skip to contentSkip to conversation

bap: Fix not setting SID for broadcast receiver

PATCH Superseded Luiz Augusto von Dentz 2 participants 2 messages Apr 11, 2025 Bluetooth drivers

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 bap: Fix not setting SID for broadcast receiver

From: Luiz Augusto von Dentz <[email protected]>

SID most be set otherwise 0x00 is assume which may not be what the broadcast source is using over the air. but since we don't have access to the SID of the advertisement in userspace mark de SID as invalid (0xff) so the kernel fill it up while scanning when creating the PA sync.

---
 profiles/audio/bap.c | 2 ++
 1 file changed, 2 insertions(+)
profiles/audio/bap.c +2 -0
index fd9b751cc1bf..2b2eb3afb74f 100644
@@ -2813,6 +2813,7 @@ static void bap_detached(struct bt_bap *bap, void *user_data)
 static int pa_sync(struct bap_data *data)
 {
 	GError *err = NULL;
+	uint8_t sid = 0xff;
 
 	if (data->listen_io) {
 		DBG("Already probed");
@@ -2833,6 +2834,7 @@ static int pa_sync(struct bap_data *data)
 		btd_device_get_bdaddr_type(data->device),
 		BT_IO_OPT_MODE, BT_IO_MODE_ISO,
 		BT_IO_OPT_QOS, &bap_sink_pa_qos,
+		BT_IO_OPT_ISO_BC_SID, &sid,
 		BT_IO_OPT_INVALID);
 	if (!data->listen_io) {
 		error("%s", err->message);
Signature · 1 line
2.49.0
#1 lore raw

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=952613

---Test result---

Test Summary:

CheckPatch                    PENDING   0.29 seconds
GitLint                       PENDING   0.22 seconds
BuildEll                      PASS      39.35 seconds
BluezMake                     PASS      2712.41 seconds
MakeCheck                     PASS      20.56 seconds
MakeDistcheck                 PASS      202.79 seconds
CheckValgrind                 PASS      275.20 seconds
CheckSmatch                   PASS      304.16 seconds
bluezmakeextell               PASS      128.34 seconds
IncrementalBuild              PENDING   0.29 seconds
ScanBuild                     PASS      912.80 seconds

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

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

##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series Output:

---
Regards,
Linux Bluetooth