diff options
author | Archie Pusaka <apusaka@chromium.org> | 2020-04-21 15:59:14 +0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-04-28 09:44:24 -0700 |
commit | ed4c79e6fd8f4e4cb8e1c9b784367c7214cfa1d7 (patch) | |
tree | aa0a91ef7ce0bdd6578b8340a21b84d946d762c7 /src/gatt-database.c | |
parent | 00fc220049d5f35c8602a35ff3313df8886370b7 (diff) | |
download | bluez-ed4c79e6fd8f4e4cb8e1c9b784367c7214cfa1d7.tar.gz |
gatt: Fix service_changed characteristic permission
According to bluetooth spec Ver 5.2, Vol 3, Part G, 7.1, the
service_changed characteristic is not readable. Therefore, this
patch marks it as such.
Diffstat (limited to 'src/gatt-database.c')
-rw-r--r-- | src/gatt-database.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gatt-database.c b/src/gatt-database.c index f2da27694..8cbe09bae 100644 --- a/src/gatt-database.c +++ b/src/gatt-database.c @@ -1197,7 +1197,7 @@ static void populate_gatt_service(struct btd_gatt_database *database) bt_uuid16_create(&uuid, GATT_CHARAC_SERVICE_CHANGED); database->svc_chngd = gatt_db_service_add_characteristic(service, &uuid, - BT_ATT_PERM_READ, BT_GATT_CHRC_PROP_INDICATE, + BT_ATT_PERM_NONE, BT_GATT_CHRC_PROP_INDICATE, NULL, NULL, database); database->svc_chngd_ccc = service_add_ccc(service, database, NULL, NULL, |