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

Commit f979392c authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Fix included service parsing (1/3)

Bug: 65637368
Test: sl4a GattIncludedServiceTest
Change-Id: Icb882d411a75a91e3fea050f00c40e76de3539de
parent dba42be3
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1218,10 +1218,10 @@ static void bta_gattc_get_gatt_db_impl(tBTA_GATTC_SERV* p_srvc_cb,
      tBTA_GATTC_INCLUDED_SVC* p_isvc =
          (tBTA_GATTC_INCLUDED_SVC*)list_node(isn);

      bta_gattc_fill_gatt_db_el(curr_db_attr, BTGATT_DB_INCLUDED_SERVICE,
                                p_isvc->handle, 0 /* s_handle */,
                                0 /* e_handle */, p_isvc->handle, p_isvc->uuid,
                                0 /* property */);
      bta_gattc_fill_gatt_db_el(
          curr_db_attr, BTGATT_DB_INCLUDED_SERVICE, p_isvc->handle,
          p_isvc->included_service ? p_isvc->included_service->s_handle : 0,
          0 /* e_handle */, p_isvc->handle, p_isvc->uuid, 0 /* property */);
      curr_db_attr++;
    }
  }