aboutsummaryrefslogtreecommitdiffstats
path: root/attrib/client.c
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2010-08-10 18:07:26 -0300
committerVinicius Costa Gomes <vinicius.gomes@openbossa.org>2010-08-11 13:54:08 -0300
commitf70c6722f02613b0ed5167ad91fc4b5474fb69a4 (patch)
tree18713ac7206136dace4d508afd2607981b34ce76 /attrib/client.c
parent97a1889bac951c6ff9746d76a763b2ae9ef75f61 (diff)
downloadbluez-f70c6722f02613b0ed5167ad91fc4b5474fb69a4.tar.gz
bluez-f70c6722f02613b0ed5167ad91fc4b5474fb69a4.tar.xz
bluez-f70c6722f02613b0ed5167ad91fc4b5474fb69a4.zip
Fix using the wrong start handle for Desc. Discovery
When doing the Descriptor Discovery procedure, the wrong starting handle was being used (the characteristic value handle). This is what the spec mandates: "The Attribute Protocol Find Information Request shall be used with the Starting Handle set to the handle of the specified characteristic value + 1 and the Ending Handle set to the ending handle of the specified characteristic."
Diffstat (limited to 'attrib/client.c')
-rw-r--r--attrib/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/attrib/client.c b/attrib/client.c
index 8cc6346e..8a7c98ec 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -516,7 +516,7 @@ static void find_all_descriptors(gpointer data, gpointer user_data)
current->gatt = gatt;
current->chr = chr;
- gatt_find_info(gatt->attrib, chr->handle, chr->end, descriptor_cb,
+ gatt_find_info(gatt->attrib, chr->handle + 1, chr->end, descriptor_cb,
current);
}