linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH obexd] client: fix not being able to read apparams when transfer is complete
Date: Wed, 18 Jan 2012 13:37:37 +0200	[thread overview]
Message-ID: <1326886657-10264-1-git-send-email-luiz.dentz@gmail.com> (raw)

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

Transfer id/xfer is set to zero when it is completed which should not
prevent the profiles to read the apparam of the last response.
---
 client/transfer.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/client/transfer.c b/client/transfer.c
index c481378..2532294 100644
--- a/client/transfer.c
+++ b/client/transfer.c
@@ -614,9 +614,6 @@ done:
 int obc_transfer_get_params(struct obc_transfer *transfer,
 					struct obc_transfer_params *params)
 {
-	if (transfer->xfer == 0)
-		return -ENOTCONN;
-
 	params->data = transfer->params->data;
 	params->size = transfer->params->size;
 
-- 
1.7.7.5


             reply	other threads:[~2012-01-18 11:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-18 11:37 Luiz Augusto von Dentz [this message]
2012-01-18 12:27 ` [PATCH obexd] client: fix not being able to read apparams when transfer is complete Johan Hedberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1326886657-10264-1-git-send-email-luiz.dentz@gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).