Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 677b704f authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi
Browse files

floss: Emit EIR uuids during device found

Floss depends on EIR uuids being emitted when the device is found and
not only when the pairing. This commit adds EIR uuids to the property
list immediately for Floss only.

Bug: 242772604
Tag: #floss
Test: Discover and inspect uuids on Pixel Buds without pairing
Change-Id: I9012c3bbbef864c0625c10fde02f685efc9b36e2
parent 645e6f98
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -1306,6 +1306,19 @@ static void btif_dm_search_devices_evt(tBTA_DM_SEARCH_EVT event,
            pairing_cb.eir_uuids[i] = uuid.To128BitBE();
            pairing_cb.num_eir_uuids++;
          }

#if TARGET_FLOSS
          // Floss expects that EIR uuids are immediately reported when the
          // device is found and doesn't wait for the pairing intent.
          //
          // If a subsequent SDP is completed, the new UUIDs should replace the
          // existing UUIDs.
          BTIF_STORAGE_FILL_PROPERTY(
              &properties[num_properties], BT_PROPERTY_UUIDS,
              pairing_cb.num_eir_uuids * Uuid::kNumBytes128,
              pairing_cb.eir_uuids);
          num_properties++;
#endif
        }

        status =