Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3104159rwj; Mon, 19 Dec 2022 13:08:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXu8gMtWUSjdMr18Q4i6dNmZj+Kk14bQgJ/vK6RnRAIosdzD9tXvbWG4QkLJA7OIkf5Oj4RO X-Received: by 2002:a17:903:182:b0:18f:af65:307e with SMTP id z2-20020a170903018200b0018faf65307emr15930624plg.38.1671484130910; Mon, 19 Dec 2022 13:08:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671484130; cv=none; d=google.com; s=arc-20160816; b=cJ4uzR5eJMRgHF8FYtf4T7D7E3/lNbmE6BP7jXQuopZc5cem5aep8QeoX0au/DQqN5 4ipSVKXY8V95vmtk0f/aPYLzL66L89GMW8WNgEoUOG2p9leV/RFl9Bb21I0hM7zcnTYd XrrA87mYqjOZUtI0EzSGA5QYvqXHNzRYpN/0ISDc1js1y4TW/Knuzm4RjcY63++kTDLQ gKQyjWxhlLgrRVJTFmclY2+jtooKeeDCMZK38ZXbOFRN5YNxEYLd99++arUV/vWwc8SV RbSifENxbO78ClWLHBPsHKJUhXz5Apx7kUhRHs26bgnSn2bLCnu0tQ8Gp7vnOdMNtlaE Jh1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:subject :message-id:to:from:date:dkim-signature; bh=9j4p59V3VQcWY/TgDKhOiXGSPOw+NlPMhszTHmziRTc=; b=ZFOI9JL/ExyVb6AALddEI4galq+YZfwN7S7Nh0q+uUigjmeSW+Z5DB7TRyUAFbXwWz pxwGswCHk9uqzpbfTcSlmsYJ9Kk+Oq+XOhkc4J09jXJD3ekGU5PBmFY2GJ1Rj7W99Yap nKQVIe9i3dgN6KDrQcgSK4WkCwZ9hnq60zCLxn07Kct0FZ4ul8wgOZ1+X8t1iSXiKa3p H/ePT8gLnK8IMZYTmaXM6jUpHk7BQ8qAr1c0uNO2cbQTZVPIIaL9XL271uXw9LnRi1jc zuthYH8NY+47b1I2ERwejmQjg7TJS/OmtdkMklhsuhp0VNPryERhy9igpTP+wImPhdKj PzKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@github.com header.s=pf2014 header.b=xPJMyteL; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=github.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16-20020a635b50000000b00478e2f75c06si11757268pgm.772.2022.12.19.13.08.37; Mon, 19 Dec 2022 13:08:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@github.com header.s=pf2014 header.b=xPJMyteL; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=github.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232408AbiLSVDT (ORCPT + 99 others); Mon, 19 Dec 2022 16:03:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231967AbiLSVDT (ORCPT ); Mon, 19 Dec 2022 16:03:19 -0500 Received: from out-28.smtp.github.com (out-28.smtp.github.com [192.30.252.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88D3AA44A for ; Mon, 19 Dec 2022 13:03:18 -0800 (PST) Received: from github.com (hubbernetes-node-ec9f30c.ash1-iad.github.net [10.56.14.70]) by smtp.github.com (Postfix) with ESMTPA id E18179004B3 for ; Mon, 19 Dec 2022 13:03:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1671483797; bh=9j4p59V3VQcWY/TgDKhOiXGSPOw+NlPMhszTHmziRTc=; h=Date:From:To:Subject:From; b=xPJMyteLnGsAdi8eRWyxw/LuDhhbJvQXXOHxQKJKpmlAIs4ldzRMKr+AqGUiKi0b5 JXJmSpwqU9HW+PMvSSUoXQa/IrxDooJrIMvqT1kJdUl5DI3CeCtZLPnOjLg0/iLih3 z5YHGr/QCLg8nP/2dYJ/xJnbEyoy73zZOjwAnHag= Date: Mon, 19 Dec 2022 13:03:17 -0800 From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Message-ID: Subject: [bluez/bluez] b91d92: shared/gatt-db: Add gatt_db_attribute_get_service Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-GitHub-Recipient-Address: linux-bluetooth@vger.kernel.org X-Auto-Response-Suppress: All X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Branch: refs/heads/master Home: https://github.com/bluez/bluez Commit: b91d9213d951277896845830d0680061c7643828 https://github.com/bluez/bluez/commit/b91d9213d951277896845830d0680061c7643828 Author: Luiz Augusto von Dentz Date: 2022-12-16 (Fri, 16 Dec 2022) Changed paths: M src/shared/gatt-db.c M src/shared/gatt-db.h Log Message: ----------- shared/gatt-db: Add gatt_db_attribute_get_service This adds gatt_db_attribute_get_service which can be used to get the service which the given attribute belongs to. Commit: da203f5dbc7edaa15b55d1efcea3fda5e43cfc2e https://github.com/bluez/bluez/commit/da203f5dbc7edaa15b55d1efcea3fda5e43cfc2e Author: Luiz Augusto von Dentz Date: 2022-12-16 (Fri, 16 Dec 2022) Changed paths: M src/shared/gatt-client.c Log Message: ----------- shared/gatt-client: Fix not removing pending services If there are no characteristics to discover, or for some reason bt_gatt_discover_descriptors is skiped, or the last attribute is actually a included service the service should be removed from pending list as there will be no more attributes to be discovered. Fixes: https://github.com/bluez/bluez/issues/438 Compare: https://github.com/bluez/bluez/compare/1270afa5aa1c...da203f5dbc7e