* [PATCH BlueZ v2 0/1] adapter: Allow broadcaster to be passed up to application
@ 2023-07-05 8:51 Claudia Draghicescu
2023-07-05 8:51 ` [PATCH BlueZ v2 1/1] " Claudia Draghicescu
0 siblings, 1 reply; 6+ messages in thread
From: Claudia Draghicescu @ 2023-07-05 8:51 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Claudia Draghicescu
Allow a broadcast advertiser to be passed up to application,
if the scanner is an ISO Sync Receiver capable device.
This allows for a broadcast sink to discover broadcast sources.
Claudia Draghicescu (1):
adapter: Allow broadcaster to be passed up to application
src/adapter.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
base-commit: ddfa40977c7e7b8723fc3ba9389822631ddeeb5c
--
2.34.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH BlueZ v2 1/1] adapter: Allow broadcaster to be passed up to application
2023-07-05 8:51 [PATCH BlueZ v2 0/1] adapter: Allow broadcaster to be passed up to application Claudia Draghicescu
@ 2023-07-05 8:51 ` Claudia Draghicescu
2023-07-05 10:14 ` bluez.test.bot
2023-07-05 17:38 ` [PATCH BlueZ v2 1/1] " Luiz Augusto von Dentz
0 siblings, 2 replies; 6+ messages in thread
From: Claudia Draghicescu @ 2023-07-05 8:51 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Claudia Draghicescu
Allow a broadcast advertiser to be passed up to application,
if the scanner is an ISO Sync Receiver capable device.
This allows for a broadcast sink to discover broadcast sources.
---
src/adapter.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/src/adapter.c b/src/adapter.c
index 2679d4302..9c971d488 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -7031,6 +7031,16 @@ static bool is_filter_match(GSList *discovery_filter, struct eir_data *eir_data,
return got_match;
}
+static bool accept_bcast_adv(struct btd_adapter *adapter,
+ struct eir_data *eir_data)
+{
+ if ((btd_adapter_has_settings(adapter, MGMT_SETTING_ISO_SYNC_RECEIVER))
+ && !(eir_data->flags & (EIR_LIM_DISC | EIR_GEN_DISC)))
+ return true;
+
+ return false;
+}
+
static void filter_duplicate_data(void *data, void *user_data)
{
struct discovery_client *client = data;
@@ -7154,12 +7164,18 @@ void btd_adapter_device_found(struct btd_adapter *adapter,
return;
}
+ if (accept_bcast_adv(adapter, &eir_data))
+ monitoring = true;
+
if (!discoverable && !monitoring && !eir_data.rsi) {
eir_data_free(&eir_data);
return;
}
dev = adapter_create_device(adapter, bdaddr, bdaddr_type);
+
+ if (accept_bcast_adv(adapter, &eir_data))
+ btd_device_set_temporary(dev, false);
}
if (!dev) {
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* RE: adapter: Allow broadcaster to be passed up to application
2023-07-05 8:51 ` [PATCH BlueZ v2 1/1] " Claudia Draghicescu
@ 2023-07-05 10:14 ` bluez.test.bot
2023-07-05 17:38 ` [PATCH BlueZ v2 1/1] " Luiz Augusto von Dentz
1 sibling, 0 replies; 6+ messages in thread
From: bluez.test.bot @ 2023-07-05 10:14 UTC (permalink / raw)
To: linux-bluetooth, claudia.rosu
[-- Attachment #1: Type: text/plain, Size: 947 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=762577
---Test result---
Test Summary:
CheckPatch PASS 0.43 seconds
GitLint PASS 0.29 seconds
BuildEll PASS 27.33 seconds
BluezMake PASS 856.49 seconds
MakeCheck PASS 12.37 seconds
MakeDistcheck PASS 153.84 seconds
CheckValgrind PASS 253.53 seconds
CheckSmatch PASS 338.11 seconds
bluezmakeextell PASS 102.16 seconds
IncrementalBuild PASS 697.99 seconds
ScanBuild PASS 1043.87 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH BlueZ v2 1/1] adapter: Allow broadcaster to be passed up to application
2023-07-05 8:51 ` [PATCH BlueZ v2 1/1] " Claudia Draghicescu
2023-07-05 10:14 ` bluez.test.bot
@ 2023-07-05 17:38 ` Luiz Augusto von Dentz
1 sibling, 0 replies; 6+ messages in thread
From: Luiz Augusto von Dentz @ 2023-07-05 17:38 UTC (permalink / raw)
To: Claudia Draghicescu; +Cc: linux-bluetooth
Hi Claudia,
On Wed, Jul 5, 2023 at 2:02 AM Claudia Draghicescu <claudia.rosu@nxp.com> wrote:
>
> Allow a broadcast advertiser to be passed up to application,
> if the scanner is an ISO Sync Receiver capable device.
> This allows for a broadcast sink to discover broadcast sources.
>
> ---
> src/adapter.c | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/src/adapter.c b/src/adapter.c
> index 2679d4302..9c971d488 100644
> --- a/src/adapter.c
> +++ b/src/adapter.c
> @@ -7031,6 +7031,16 @@ static bool is_filter_match(GSList *discovery_filter, struct eir_data *eir_data,
> return got_match;
> }
>
> +static bool accept_bcast_adv(struct btd_adapter *adapter,
> + struct eir_data *eir_data)
> +{
> + if ((btd_adapter_has_settings(adapter, MGMT_SETTING_ISO_SYNC_RECEIVER))
> + && !(eir_data->flags & (EIR_LIM_DISC | EIR_GEN_DISC)))
> + return true;
> +
> + return false;
> +}
> +
> static void filter_duplicate_data(void *data, void *user_data)
> {
> struct discovery_client *client = data;
> @@ -7154,12 +7164,18 @@ void btd_adapter_device_found(struct btd_adapter *adapter,
> return;
> }
>
> + if (accept_bcast_adv(adapter, &eir_data))
> + monitoring = true;
> +
> if (!discoverable && !monitoring && !eir_data.rsi) {
> eir_data_free(&eir_data);
> return;
> }
Lets match by advertising UUID since it should contain a broadcast
audio announcement to be considered a broadcaster.
> dev = adapter_create_device(adapter, bdaddr, bdaddr_type);
> +
> + if (accept_bcast_adv(adapter, &eir_data))
> + btd_device_set_temporary(dev, false);
I wouldn't persist broadcasters like that, at least not until we
synchronize with it, that said, if it is using a random address it
probably cannot be stored anyway.
> }
>
> if (!dev) {
> --
> 2.34.1
>
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH BlueZ v3 1/1] adapter: Allow broadcaster to be passed up to application
@ 2023-07-06 13:36 Claudia Draghicescu
2023-07-06 14:53 ` bluez.test.bot
0 siblings, 1 reply; 6+ messages in thread
From: Claudia Draghicescu @ 2023-07-06 13:36 UTC (permalink / raw)
To: linux-bluetooth
Cc: iulia.tanasescu, mihai-octavian.urzica, silviu.barbulescu,
vlad.pruteanu, andrei.istodorescu, Claudia Draghicescu
Allow a broadcast advertiser to be passed up to application,
if the scanner is an ISO Sync Receiver capable device.
This allows for a broadcast sink to discover broadcast sources.
---
src/adapter.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/src/adapter.c b/src/adapter.c
index 2679d4302..a48d73ddb 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -7031,6 +7031,27 @@ static bool is_filter_match(GSList *discovery_filter, struct eir_data *eir_data,
return got_match;
}
+static int find_baas(gconstpointer a, gconstpointer b)
+{
+ const struct eir_sd *sd = a;
+ const char *baas_uuid = b;
+
+ return strcmp(sd->uuid, baas_uuid);
+}
+
+static bool accept_bcast_adv(struct btd_adapter *adapter,
+ struct eir_data *eir_data)
+{
+ if ((btd_adapter_has_settings(adapter, MGMT_SETTING_ISO_SYNC_RECEIVER))
+ && !(eir_data->flags & (EIR_LIM_DISC | EIR_GEN_DISC))
+ && (g_slist_find_custom(eir_data->sd_list,
+ BAA_SERVICE_UUID, find_baas))) {
+ return true;
+ }
+
+ return false;
+}
+
static void filter_duplicate_data(void *data, void *user_data)
{
struct discovery_client *client = data;
@@ -7154,6 +7175,9 @@ void btd_adapter_device_found(struct btd_adapter *adapter,
return;
}
+ if (accept_bcast_adv(adapter, &eir_data))
+ monitoring = true;
+
if (!discoverable && !monitoring && !eir_data.rsi) {
eir_data_free(&eir_data);
return;
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH BlueZ 1/1] adapter: Allow broadcaster to be passed up to application
@ 2023-07-05 7:32 Claudia Draghicescu
2023-07-05 8:37 ` bluez.test.bot
0 siblings, 1 reply; 6+ messages in thread
From: Claudia Draghicescu @ 2023-07-05 7:32 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Claudia Draghicescu
Allow a broadcast advertiser to be passed up to application,
if the scanner is an ISO Sync Receiver capable device.
This allows for a broadcast sink to discover broadcast sources.
---
src/adapter.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/src/adapter.c b/src/adapter.c
index 2679d4302..dbc469651 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -7031,6 +7031,16 @@ static bool is_filter_match(GSList *discovery_filter, struct eir_data *eir_data,
return got_match;
}
+static bool accept_bcast_adv(struct btd_adapter *adapter,
+ struct eir_data *eir_data)
+{
+ if ((btd_adapter_has_settings(adapter, MGMT_SETTING_ISO_SYNC_RECEIVER))
+ && !(eir_data->flags & (EIR_LIM_DISC | EIR_GEN_DISC)))
+ return true;
+
+ return false;
+}
+
static void filter_duplicate_data(void *data, void *user_data)
{
struct discovery_client *client = data;
@@ -7154,12 +7164,18 @@ void btd_adapter_device_found(struct btd_adapter *adapter,
return;
}
+ if (accept_bcast_adv(adapter, &eir_data))
+ monitoring = true;
+
if (!discoverable && !monitoring && !eir_data.rsi) {
eir_data_free(&eir_data);
return;
}
dev = adapter_create_device(adapter, bdaddr, bdaddr_type);
+
+ if (accept_bcast_adv(adapter, &eir_data))
+ btd_device_set_temporary(dev, false);
}
if (!dev) {
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* RE: adapter: Allow broadcaster to be passed up to application
2023-07-05 7:32 [PATCH BlueZ 1/1] " Claudia Draghicescu
@ 2023-07-05 8:37 ` bluez.test.bot
0 siblings, 0 replies; 6+ messages in thread
From: bluez.test.bot @ 2023-07-05 8:37 UTC (permalink / raw)
To: linux-bluetooth, claudia.rosu
[-- Attachment #1: Type: text/plain, Size: 1847 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=762556
---Test result---
Test Summary:
CheckPatch FAIL 1.00 seconds
GitLint PASS 0.34 seconds
BuildEll PASS 27.23 seconds
BluezMake PASS 883.04 seconds
MakeCheck PASS 11.99 seconds
MakeDistcheck PASS 155.56 seconds
CheckValgrind PASS 256.02 seconds
CheckSmatch PASS 342.58 seconds
bluezmakeextell PASS 103.66 seconds
IncrementalBuild PASS 721.95 seconds
ScanBuild PASS 1060.26 seconds
Details
##############################
Test: CheckPatch - FAIL
Desc: Run checkpatch.pl script
Output:
[BlueZ,1/1] adapter: Allow broadcaster to be passed up to application
WARNING:LONG_LINE: line length of 90 exceeds 80 columns
#113: FILE: src/adapter.c:7035:
+ struct eir_data *eir_data)
/github/workspace/src/src/13301782.patch total: 0 errors, 1 warnings, 34 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
/github/workspace/src/src/13301782.patch has style problems, please review.
NOTE: Ignored message types: COMMIT_MESSAGE COMPLEX_MACRO CONST_STRUCT FILE_PATH_CHANGES MISSING_SIGN_OFF PREFER_PACKED SPDX_LICENSE_TAG SPLIT_STRING SSCANF_TO_KSTRTO
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-07-06 14:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-05 8:51 [PATCH BlueZ v2 0/1] adapter: Allow broadcaster to be passed up to application Claudia Draghicescu
2023-07-05 8:51 ` [PATCH BlueZ v2 1/1] " Claudia Draghicescu
2023-07-05 10:14 ` bluez.test.bot
2023-07-05 17:38 ` [PATCH BlueZ v2 1/1] " Luiz Augusto von Dentz
-- strict thread matches above, loose matches on Subject: below --
2023-07-06 13:36 [PATCH BlueZ v3 " Claudia Draghicescu
2023-07-06 14:53 ` bluez.test.bot
2023-07-05 7:32 [PATCH BlueZ 1/1] " Claudia Draghicescu
2023-07-05 8:37 ` bluez.test.bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox