adapter: Do not filter out broadcast advertiser
authorClaudia Draghicescu <claudia.rosu@nxp.com>
Tue, 8 Aug 2023 11:50:36 +0000 (14:50 +0300)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 13:34:03 +0000 (19:04 +0530)
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

index 3d8d001..c33953d 100644 (file)
@@ -12370,6 +12370,13 @@ 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;
 #ifdef TIZEN_FEATURE_BLUEZ_MODIFY
                /*DBG("List BREDR:%p LE:%p Discoverable:%d", adapter->discovery_list,
                        adapter->le_discovery_list, discoverable);*/