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

Commit 273843ce authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Don't return GATT services discovered over SDP separately

We will immediately send them with rest of SDP results in BTA_DM_DISC_RES_EVT

Test: pair with Dual Mode device
Bug: 248340112
Merged-In: I7b5f0de233c8d3f438e72598450ab20f457d32cb
Change-Id: I7b5f0de233c8d3f438e72598450ab20f457d32cb
parent d31146f1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1598,6 +1598,12 @@ static void btif_dm_search_services_evt(tBTA_DM_SEARCH_EVT event,
        num_properties++;
      }

      /* If services were returned as part of SDP discovery, we will immediately
       * send them with rest of SDP results in BTA_DM_DISC_RES_EVT */
      if (event == BTA_DM_GATT_OVER_SDP_RES_EVT) {
        return;
      }

      /* Send the event to the BTIF */
      invoke_remote_device_properties_cb(BT_STATUS_SUCCESS, bd_addr,
                                         num_properties, prop);