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

Commit 5661778c authored by Martin Yan's avatar Martin Yan
Browse files

Not add RAS to SDP record currently.

Bug: 350124282
Bug: 324185011
Test: m
Test: atest pts-bot:SDP
Change-Id: I2460e3ba6c6211b0dac65b640343fe9c7d664f36
parent 48e1837e
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -320,7 +320,12 @@ tGATT_STATUS GATTS_AddService(tGATT_IF gatt_if, btgatt_db_element_t* service, in
    Uuid* p_uuid = gatts_get_service_uuid(elem.p_db);
    if (*p_uuid != Uuid::From16Bit(UUID_SERVCLASS_GMCS_SERVER) &&
        *p_uuid != Uuid::From16Bit(UUID_SERVCLASS_GTBS_SERVER)) {
      if (com::android::bluetooth::flags::channel_sounding_in_stack() &&
          *p_uuid == Uuid::From16Bit(UUID_SERVCLASS_RAS)) {
        elem.sdp_handle = 0;
      } else {
        elem.sdp_handle = gatt_add_sdp_record(*p_uuid, elem.s_hdl, elem.e_hdl);
      }
    } else {
      elem.sdp_handle = 0;
    }
+1 −0
Original line number Diff line number Diff line
@@ -126,3 +126,4 @@
  0x184c                                  /* Generic Telephony Bearer \
                                             Service*/
#define UUID_SERVCLASS_TMAS_SERVER 0x1855 /* Telephone and Media Audio Service */
#define UUID_SERVCLASS_RAS 0x7F7D         /* Ranging Service */