All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: Finalize discovery after discover message was rejected.
@ 2012-03-09 17:27 Rafal Garbat
  2012-04-04 10:20 ` Johan Hedberg
  0 siblings, 1 reply; 6+ messages in thread
From: Rafal Garbat @ 2012-03-09 17:27 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: rafal.garbat

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:
-- 
on behalf of ST-Ericsson


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

end of thread, other threads:[~2012-04-04 11:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-09 17:27 [PATCH] Bluetooth: Finalize discovery after discover message was rejected Rafal Garbat
2012-04-04 10:20 ` Johan Hedberg
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.