From 3370c462552b0dfcae33757bbfe1b843e7cff84f Mon Sep 17 00:00:00 2001 From: Claudia Draghicescu Date: Tue, 8 Aug 2023 14:50:36 +0300 Subject: [PATCH] adapter: Do not filter out broadcast advertiser This allows a broadcast advertiser to be passed up to application, if the adapter has the capability of being a Synchronized Receiver. --- src/adapter.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/adapter.c b/src/adapter.c index 491bd7031..004062e7c 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -7152,6 +7152,14 @@ void btd_adapter_device_found(struct btd_adapter *adapter, return; } + /* Monitor Devices advertising Broadcast Announcements if the + * adapter is capable of synchronizing to it. + */ + if (eir_get_service_data(&eir_data, BAA_SERVICE_UUID) && + btd_adapter_has_settings(adapter, + MGMT_SETTING_ISO_SYNC_RECEIVER)) + monitoring = true; + if (!discoverable && !monitoring && !eir_data.rsi) { eir_data_free(&eir_data); return; -- 2.47.3