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

Commit a93c8d2f authored by Xin Li's avatar Xin Li
Browse files

Merge RQ2A.210305.007 into stage.

Bug: 180401296
Merged-In: I1d014a7b793bb1b66e26652f6696499ea36a6510
Change-Id: I026f7700ab9b9547ab06de795ed1b84a658368fd
parents d2b1bb5e 0f6776ab
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@
#include "bta_sys.h"
#include "btif_config.h"
#include "btm_api.h"
#include "osi/include/log.h"
#include "osi/include/osi.h"
#include "sdp_api.h"
#include "stack/btm/btm_sec.h"
@@ -479,6 +480,12 @@ void bta_ag_do_disc(tBTA_AG_SCB* p_scb, tBTA_SERVICE_MASK service) {
    }
  }

  if (p_scb->p_disc_db != nullptr) {
    android_errorWriteLog(0x534e4554, "174052148");
    APPL_TRACE_ERROR("Discovery already in progress... returning.");
    return;
  }

  /* allocate buffer for sdp database */
  p_scb->p_disc_db = (tSDP_DISCOVERY_DB*)osi_malloc(BTA_AG_DISC_BUF_SIZE);
  /* set up service discovery database; attr happens to be attr_list len */