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

Commit d67aa9d0 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

Simplify security level parameter for SDP

Test: compile
Change-Id: I1abcf94d6eeb2a64ffa18ba895f97fb7e07ca846
parent 0ad1b636
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -773,11 +773,6 @@
#define SDP_SERVICE_NAME "Service Discovery"
#endif

/* The security level for BTM. */
#ifndef SDP_SECURITY_LEVEL
#define SDP_SECURITY_LEVEL BTM_SEC_NONE
#endif

/******************************************************************************
 *
 * RFCOMM
+2 −2
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ void sdp_init(void) {
#if (SDP_SERVER_ENABLED == TRUE)
  /* Register with Security Manager for the specific security level */
  if (!BTM_SetSecurityLevel(false, SDP_SERVICE_NAME, BTM_SEC_SERVICE_SDP_SERVER,
                            SDP_SECURITY_LEVEL, SDP_PSM, 0, 0)) {
                            BTM_SEC_NONE, SDP_PSM, 0, 0)) {
    SDP_TRACE_ERROR("Security Registration Server failed");
    return;
  }
@@ -97,7 +97,7 @@ void sdp_init(void) {

  /* Register with Security Manager for the specific security level */
  if (!BTM_SetSecurityLevel(true, SDP_SERVICE_NAME, BTM_SEC_SERVICE_SDP_SERVER,
                            SDP_SECURITY_LEVEL, SDP_PSM, 0, 0)) {
                            BTM_SEC_NONE, SDP_PSM, 0, 0)) {
    SDP_TRACE_ERROR("Security Registration for Client failed");
    return;
  }