From 012e763311933bf2507cd33cb5a4f4fbbce2d2d8 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 29 Nov 2017 11:00:15 +0200 Subject: [PATCH] Bluetooth: Mesh: Fix GATT Proxy Service CCC read permissions Test case MESH/SR/MPXS/BV-04-C requires the Proxy Service CCC to have read permissions in order to pass. Signed-off-by: Johan Hedberg --- subsys/bluetooth/host/mesh/proxy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/subsys/bluetooth/host/mesh/proxy.c b/subsys/bluetooth/host/mesh/proxy.c index db33feece76..7d1bf32f1d0 100644 --- a/subsys/bluetooth/host/mesh/proxy.c +++ b/subsys/bluetooth/host/mesh/proxy.c @@ -703,8 +703,9 @@ static struct bt_gatt_attr proxy_attrs[] = { BT_GATT_DESCRIPTOR(BT_UUID_MESH_PROXY_DATA_OUT, BT_GATT_PERM_NONE, NULL, NULL, NULL), /* Add custom CCC as clients need to be tracked individually */ - BT_GATT_DESCRIPTOR(BT_UUID_GATT_CCC, BT_GATT_PERM_WRITE, proxy_ccc_read, - proxy_ccc_write, &proxy_ccc_val), + BT_GATT_DESCRIPTOR(BT_UUID_GATT_CCC, + BT_GATT_PERM_READ | BT_GATT_PERM_WRITE, + proxy_ccc_read, proxy_ccc_write, &proxy_ccc_val), }; static struct bt_gatt_service proxy_svc = BT_GATT_SERVICE(proxy_attrs);