Re: [PATCH BlueZ 1/8] core/device: Load stored attributes before initializing GATT client

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

 



Hi,

On Mon, Sep 12, 2016 at 5:07 PM, Luiz Augusto von Dentz
<luiz.dentz@xxxxxxxxx> wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
>
> During gatt_client_init service are requested to accept the connection
> which may leads the driver to check existence of attributes.
> ---
>  src/device.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/device.c b/src/device.c
> index fd928fc..73bcc8f 100644
> --- a/src/device.c
> +++ b/src/device.c
> @@ -4823,12 +4823,12 @@ bool device_attach_att(struct btd_device *dev, GIOChannel *io)
>         dst = device_get_address(dev);
>         ba2str(dst, dstaddr);
>
> -       gatt_client_init(dev);
> -       gatt_server_init(dev, btd_gatt_database_get_db(database));
> -
>         if (gatt_db_isempty(dev->db))
>                 load_gatt_db(dev, srcaddr, dstaddr);
>
> +       gatt_client_init(dev);
> +       gatt_server_init(dev, btd_gatt_database_get_db(database));
> +
>         /*
>          * Remove the device from the connect_list and give the passive
>          * scanning another chance to be restarted in case there are
> --
> 2.7.4

Applied.


-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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