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

Commit 0374ed0c authored by Archie Pusaka's avatar Archie Pusaka
Browse files

Floss: Allow to register RAW SDP record

Currently registering a RAW-type SDP record is ignored. This causes
the client tester to fail to connect to the appropriate service.

Allow registering a RAW SDP record.

Bug: 271829583
Test: CTSV Insecure Server Test

Change-Id: I2f9a0d7b88a09cdb731667882ceb25c83b8a43b2
parent 1957c7ca
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@
#include "bta_sdp_api.h"
#include "bta_sys.h"
#include "btif_common.h"
#include "btif_sock_sdp.h"
#include "btif_sock_util.h"
#include "btif_util.h"
#include "osi/include/allocator.h"
@@ -380,6 +381,12 @@ void on_create_record_event(int id) {
      case SDP_TYPE_MPS:
        handle = add_mps_sdp(&record->mps);
        break;
      case SDP_TYPE_RAW:
        if (record->hdr.rfcomm_channel_number > 0) {
          handle = add_rfc_sdp_rec(record->hdr.service_name, record->hdr.uuid,
                                   record->hdr.rfcomm_channel_number);
        }
        break;
      default:
        BTIF_TRACE_DEBUG("Record type %d is not supported", record->hdr.type);
        break;