From 8cfdf96ac57a786af1260d7d561fb689bb13b46d Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Mon, 7 Nov 2011 10:59:48 -0300 Subject: [PATCH] Remove CCC for read by type Read by type is never used to iterate through attributes related to Client Characteristic Configuration or any other descriptor. --- src/attrib-server.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/attrib-server.c b/src/attrib-server.c index a9968849a..b2e218c98 100644 --- a/src/attrib-server.c +++ b/src/attrib-server.c @@ -415,7 +415,6 @@ static uint16_t read_by_type(struct gatt_channel *channel, uint16_t start, ATT_ECODE_INVALID_HANDLE, pdu, len); for (l = database, length = 0, types = NULL; l; l = l->next) { - struct attribute *client_attr; a = l->data; @@ -431,10 +430,6 @@ static uint16_t read_by_type(struct gatt_channel *channel, uint16_t start, status = att_check_reqs(channel, ATT_OP_READ_BY_TYPE_REQ, a->read_reqs); - client_attr = client_cfg_attribute(channel, a, a->data, a->len); - if (client_attr) - a = client_attr; - if (status == 0x00 && a->read_cb) status = a->read_cb(a, a->cb_user_data); -- 2.47.3