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

Commit 40e25c71 authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Gerrit Code Review
Browse files

Merge "Don't return GATT services discovered over SDP separately"

parents ed26a41f 68946e15
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -1621,6 +1621,12 @@ static void btif_dm_search_services_evt(tBTA_DM_SEARCH_EVT event,
        num_properties++;
        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 */
      /* Send the event to the BTIF */
      GetInterfaceToProfiles()->events->invoke_remote_device_properties_cb(
      GetInterfaceToProfiles()->events->invoke_remote_device_properties_cb(
          BT_STATUS_SUCCESS, bd_addr, num_properties, prop);
          BT_STATUS_SUCCESS, bd_addr, num_properties, prop);