From: Johan Hedberg <johan.hedberg@gmail.com>
To: Rafal Garbat <rafal.garbat@tieto.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Bluetooth: Finalize discovery after discover message was rejected.
Date: Wed, 4 Apr 2012 13:20:47 +0300 [thread overview]
Message-ID: <20120404102047.GA29893@x220> (raw)
In-Reply-To: <1331314055-18669-1-git-send-email-rafal.garbat@tieto.com>
Hi Rafal,
On Fri, Mar 09, 2012, Rafal Garbat wrote:
> Finalize discovery and disconnect l2cap after discover
> message was rejected.
> ---
> audio/avdtp.c | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/audio/avdtp.c b/audio/avdtp.c
> index cd66fd4..64e5800 100644
> --- a/audio/avdtp.c
> +++ b/audio/avdtp.c
> @@ -3064,6 +3064,12 @@ static gboolean avdtp_parse_rej(struct avdtp *session,
> return FALSE;
> error("DISCOVER request rejected: %s (%d)",
> avdtp_strerror(&err), err.err.error_code);
> + if (session->discov_cb) {
> + session->discov_cb(session, session->seps,
> + &err, session->user_data);
> + session->discov_cb = NULL;
> + session->used_data = NULL;
> + }
> return TRUE;
> case AVDTP_GET_CAPABILITIES:
> case AVDTP_GET_ALL_CAPABILITIES:
The patch looks ok'ish but it doesn't compile:
audio/avdtp.c: In function ‘avdtp_parse_rej’:
audio/avdtp.c:3071:11: error: ‘struct avdtp’ has no member named ‘used_data’
Secondly, please use a "avdtp:" prefix for the commit message
("Bluetooth" is only reserved for kernel patches) and remove the '.'
from the end of the summary line.
Johan
next prev parent reply other threads:[~2012-04-04 10:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-09 17:27 [PATCH] Bluetooth: Finalize discovery after discover message was rejected Rafal Garbat
2012-04-04 10:20 ` Johan Hedberg [this message]
2012-04-04 11:05 ` Garbat Rafal
2012-04-04 11:08 ` Johan Hedberg
2012-04-04 11:10 ` Johan Hedberg
2012-04-04 11:17 ` Garbat Rafal
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=20120404102047.GA29893@x220 \
--to=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=rafal.garbat@tieto.com \
/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