Re: [PATCH 1/2] bluez:load Generic access service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Amit,

On Fri, Jun 5, 2020 at 7:31 AM Amitsi5x <amitx.k.singh@xxxxxxxxx> wrote:
>
> From: “AmitSingh” <amitx.k.singh@xxxxxxxxx>
>
> It allow to load generic access service to database
>
> Signed-off-by: “AmitSingh” <amitx.k.singh@xxxxxxxxx>
> ---
>  src/gatt-client.c | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/src/gatt-client.c b/src/gatt-client.c
> index 20c3fbec2..2ae258da0 100644
> --- a/src/gatt-client.c
> +++ b/src/gatt-client.c
> @@ -2009,9 +2009,6 @@ static void export_service(struct gatt_db_attribute *attr, void *user_data)
>         struct btd_gatt_client *client = user_data;
>         struct service *service;
>
> -       if (gatt_db_service_get_claimed(attr))
> -               return;
> -

This is actually done on purpose in order to avoid extra traffic since
the daemon already exposes this information in other interfaces.

>         service = service_create(attr, client);
>         if (!service)
>                 return;
> --
> 2.17.1

-- 
Luiz Augusto von Dentz




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux