public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/6] AVCTP: Fix setting wrong transaction id expected for responses
@ 2012-05-24 13:22 Luiz Augusto von Dentz
  2012-05-24 13:22 ` [PATCH BlueZ 2/6] AVRCP: Fix not setting audio device connected to player Luiz Augusto von Dentz
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Luiz Augusto von Dentz @ 2012-05-24 13:22 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

The id were incremented after being set to the request so it is always
+1 of the actual transaction.
---
 audio/avctp.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/audio/avctp.c b/audio/avctp.c
index 1bc2a1d..5f9afa1 100644
--- a/audio/avctp.c
+++ b/audio/avctp.c
@@ -982,7 +982,7 @@ int avctp_send_vendordep_req(struct avctp *session, uint8_t code,
 	struct avctp_rsp_handler *handler;
 	int err;
 
-	err = avctp_send(session, id++, AVCTP_COMMAND, code, subunit,
+	err = avctp_send(session, id, AVCTP_COMMAND, code, subunit,
 				AVC_OP_VENDORDEP, operands, operand_count);
 	if (err < 0)
 		return err;
@@ -994,6 +994,8 @@ int avctp_send_vendordep_req(struct avctp *session, uint8_t code,
 
 	session->handlers = g_slist_prepend(session->handlers, handler);
 
+	id++;
+
 	return 0;
 }
 
-- 
1.7.7.6


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

end of thread, other threads:[~2012-05-25  8:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-24 13:22 [PATCH BlueZ 1/6] AVCTP: Fix setting wrong transaction id expected for responses Luiz Augusto von Dentz
2012-05-24 13:22 ` [PATCH BlueZ 2/6] AVRCP: Fix not setting audio device connected to player Luiz Augusto von Dentz
2012-05-24 13:22 ` [PATCH BlueZ 3/6] media-api: Update documentation to include Volume property Luiz Augusto von Dentz
2012-05-24 13:22 ` [PATCH BlueZ 4/6] audio: Fix signature type for transport Volume Luiz Augusto von Dentz
2012-05-24 16:50   ` Lucas De Marchi
2012-05-25  8:21     ` Luiz Augusto von Dentz
2012-05-24 13:22 ` [PATCH BlueZ 5/6] AVRCP: Add support for sending SetAbsoluteVolume Luiz Augusto von Dentz
2012-05-24 17:08   ` Lucas De Marchi
2012-05-25  8:30     ` Luiz Augusto von Dentz
2012-05-24 13:22 ` [PATCH BlueZ 6/6] audio: Add Volume property to A2DP transport GetProperties Luiz Augusto von Dentz
2012-05-24 17:09   ` Lucas De Marchi
2012-05-25  7:42 ` [PATCH BlueZ 1/6] AVCTP: Fix setting wrong transaction id expected for responses Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox