From 205746176acee3cbecabd5932270ec75f732c2ff Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 26 Feb 2015 11:14:43 +0200 Subject: [PATCH] core/gatt-client: Add support for signed writes This checks if the characteristic support authenticated-signed-writes bit then proceed to use it. --- src/gatt-client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gatt-client.c b/src/gatt-client.c index 7aab7473a..63358c2cf 100644 --- a/src/gatt-client.c +++ b/src/gatt-client.c @@ -926,9 +926,9 @@ static DBusMessage *characteristic_write_value(DBusConnection *conn, supported = true; chrc->write_id = bt_gatt_client_write_without_response(gatt, - chrc->value_handle, - false, value, - value_len); + chrc->value_handle, + chrc->props & BT_GATT_CHRC_PROP_AUTH, + value, value_len); if (chrc->write_id) return dbus_message_new_method_return(msg); -- 2.47.3