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

Commit 17f60df7 authored by Hsin-chen Chuang's avatar Hsin-chen Chuang
Browse files

floss: Don't search for PBAP Client in DM discovery

This conflicts with the profile connection and breaks the pairing
process.
Disable it on Floss since PBAP is not used on Floss.

Bug: 281907706
Tag: #floss
Test: Manual test
Change-Id: I633f77e24c523220fdd73b6f160e7b95d1666eef
parent f8577a6e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1877,12 +1877,14 @@ static void bta_dm_find_services(const RawAddress& bd_addr) {
        bta_dm_search_cb.service_index = BTA_MAX_SERVICE_ID;

      } else {
#ifndef TARGET_FLOSS
        if (uuid == Uuid::From16Bit(UUID_PROTOCOL_L2CAP)) {
          if (!is_sdp_pbap_pce_disabled(bd_addr)) {
            LOG_DEBUG("SDP search for PBAP Client ");
            BTA_SdpSearch(bd_addr, Uuid::From16Bit(UUID_SERVCLASS_PBAP_PCE));
          }
        }
#endif
        bta_dm_search_cb.service_index++;
        return;
      }