From 6d410a0e2e2e801e8555a42f799ede5787565bf7 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 11 Feb 2019 18:33:58 +0200 Subject: [PATCH] gatt: Fix not allowing 'extended-properties' as flags Allows 'extended-propeties' as flags. --- doc/gatt-api.txt | 1 + src/gatt-database.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/doc/gatt-api.txt b/doc/gatt-api.txt index 1281dd3fb..98fe7487c 100644 --- a/doc/gatt-api.txt +++ b/doc/gatt-api.txt @@ -261,6 +261,7 @@ Properties string UUID [read-only] "notify" "indicate" "authenticated-signed-writes" + "extended-properties" "reliable-write" "writable-auxiliaries" "encrypt-read" diff --git a/src/gatt-database.c b/src/gatt-database.c index 5aaf5c690..548eabaa3 100644 --- a/src/gatt-database.c +++ b/src/gatt-database.c @@ -1550,6 +1550,8 @@ static bool parse_chrc_flags(DBusMessageIter *array, uint8_t *props, } else if (!strcmp("authenticated-signed-writes", flag)) { *props |= BT_GATT_CHRC_PROP_AUTH; *perm |= BT_ATT_PERM_WRITE; + } else if (!strcmp("extended-properties", flag)) { + *props |= BT_GATT_CHRC_PROP_EXT_PROP; } else if (!strcmp("reliable-write", flag)) { *ext_props |= BT_GATT_CHRC_EXT_PROP_RELIABLE_WRITE; *perm |= BT_ATT_PERM_WRITE; -- 2.47.3