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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/adapter.c b/src/adapter.c index 491bd7031..fa15030e0 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -7029,6 +7029,13 @@ 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) +{ + if ((btd_adapter_has_settings(adapter, MGMT_SETTING_ISO_SYNC_RECEIVER))) + return true; + + return false; +} static void filter_duplicate_data(void *data, void *user_data) { struct discovery_client *client = data; @@ -7152,6 +7159,9 @@ void btd_adapter_device_found(struct btd_adapter *adapter, return; } + if (accept_bcast_adv(adapter)) + monitoring = true; + if (!discoverable && !monitoring && !eir_data.rsi) { eir_data_free(&eir_data); return; -- 2.34.1