OSDN Git Service

android/hal-gatt: Fix sending wrong gatt_id struct
authorJakub Tyszkowski <jakub.tyszkowski@tieto.com>
Tue, 25 Mar 2014 12:53:00 +0000 (13:53 +0100)
committerSzymon Janc <szymon.janc@tieto.com>
Tue, 25 Mar 2014 13:05:28 +0000 (14:05 +0100)
android/hal-gatt.c

index bd61576..8a8ce9c 100644 (file)
@@ -676,7 +676,7 @@ static bt_status_t get_descriptor(int conn_id, btgatt_srvc_id_t *srvc_id,
        cmd->number = 1;
 
        if (start_descr_id) {
-               gatt_id_to_hal(&cmd->gatt_id[1], char_id);
+               gatt_id_to_hal(&cmd->gatt_id[1], start_descr_id);
                len += sizeof(cmd->gatt_id[1]);
                cmd->number++;
        }