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

Commit bcb9b5f7 authored by Zach Johnson's avatar Zach Johnson
Browse files

Push BTA_ALL_SERVICE_MASK further into DmDiscover

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I3d5c6d1b91b2d105ae21bbd8091bbb5d756ee8ac
parent 15332309
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -864,11 +864,8 @@ void bta_dm_search_cancel() {
 *
 ******************************************************************************/
void bta_dm_discover(tBTA_DM_MSG* p_data) {
  APPL_TRACE_EVENT("%s services_to_search=0x%04X", __func__,
                   p_data->discover.services);

  /* save the search condition */
  bta_dm_search_cb.services = p_data->discover.services;
  bta_dm_search_cb.services = BTA_ALL_SERVICE_MASK;

  bta_dm_gattc_register();

+0 −1
Original line number Diff line number Diff line
@@ -142,7 +142,6 @@ void BTA_DmDiscover(const RawAddress& bd_addr, tBTA_DM_SEARCH_CBACK* p_cback,

  p_msg->hdr.event = BTA_DM_API_DISCOVER_EVT;
  p_msg->bd_addr = bd_addr;
  p_msg->services = BTA_ALL_SERVICE_MASK;
  p_msg->transport = transport;
  p_msg->p_cback = p_cback;

+0 −1
Original line number Diff line number Diff line
@@ -69,7 +69,6 @@ typedef struct {
typedef struct {
  BT_HDR hdr;
  RawAddress bd_addr;
  tBTA_SERVICE_MASK services;
  tBTA_DM_SEARCH_CBACK* p_cback;
  tBT_TRANSPORT transport;
} tBTA_DM_API_DISCOVER;