[PATCH 1/2] android/hal-gatt: Fix sending wrong gatt_id struct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 android/hal-gatt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android/hal-gatt.c b/android/hal-gatt.c
index bd61576..8a8ce9c 100644
--- a/android/hal-gatt.c
+++ b/android/hal-gatt.c
@@ -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++;
 	}
-- 
1.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux