linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] android/gatt: Fix not setting error properly for exec write
@ 2014-12-10 12:40 Jakub Tyszkowski
  2014-12-10 12:40 ` [PATCH 2/3] android/gatt: Fix passing out of att range errors Jakub Tyszkowski
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jakub Tyszkowski @ 2014-12-10 12:40 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Jakub Tyszkowski

We were not properly propagating errors returned by applications.
---
 android/gatt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/android/gatt.c b/android/gatt.c
index e24feb7..18a5092 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -5544,6 +5544,7 @@ static void handle_server_send_response(const void *buf, uint16_t len)
 		 * gatt_db_attribute_write().
 		 */
 		req = queue_peek_head(conn->device->pending_requests);
+		req->error = err_to_att(cmd->status);
 		req->state = REQUEST_DONE;
 
 		/*
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-10 13:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-10 12:40 [PATCH 1/3] android/gatt: Fix not setting error properly for exec write Jakub Tyszkowski
2014-12-10 12:40 ` [PATCH 2/3] android/gatt: Fix passing out of att range errors Jakub Tyszkowski
2014-12-10 12:40 ` [PATCH 3/3] android/pts: Update gatt serwer results Jakub Tyszkowski
2014-12-10 13:19 ` [PATCH 1/3] android/gatt: Fix not setting error properly for exec write Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).