Re: [PATCH BlueZ] gatt: Fix not replying to Write request

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

 



Hi,

On Mon, Oct 2, 2017 at 2:47 PM, Luiz Augusto von Dentz
<luiz.dentz@xxxxxxxxx> wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
>
> When using AcquireWrite the first write would not call
> gatt_db_attribute_write_result so no reply would be generated.
> ---
>  src/gatt-database.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/gatt-database.c b/src/gatt-database.c
> index 4932568dd..e84c19198 100644
> --- a/src/gatt-database.c
> +++ b/src/gatt-database.c
> @@ -1892,6 +1892,8 @@ static void acquire_write_reply(DBusMessage *message, void *user_data)
>                                 op->data.iov_len) < 0)
>                 goto retry;
>
> +       gatt_db_attribute_write_result(op->attrib, op->id, 0);
> +
>         return;
>
>  retry:
> --
> 2.13.5
>
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