[PATCH 3/4] android/gatt: Set state of pending responses

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

 



Set state to PENDING before read. If state was not set to PENDING,
response was sent immediatelly even if there was no response from upper
layer.
---
 android/gatt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/android/gatt.c b/android/gatt.c
index 7ae0f55..4c2488f 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -4167,6 +4167,8 @@ static void read_requested_attributes(void *data, void *user_data)
 	if (error)
 		goto done;
 
+	resp_data->state = REQUEST_PENDING;
+
 	if (!gatt_db_read(gatt_db, resp_data->handle,
 						resp_data->offset,
 						process_data->opcode,
-- 
1.9.3

--
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