From 1ce1db5002f3b7714d1788a68ca06fd1849b68a0 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 29 Nov 2013 15:00:11 +0200 Subject: [PATCH] android/AVDTP: Fix not calling callback if GET_CONFIGURATION is rejected If GET_CONFIGURATION command is rejected and a callback exists it should be called with the reject error, this fixes test /TP/SIG/SMG/BI-10-C. --- android/avdtp.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/android/avdtp.c b/android/avdtp.c index 40bb4be3c..5ae3afc46 100644 --- a/android/avdtp.c +++ b/android/avdtp.c @@ -2589,6 +2589,15 @@ static gboolean avdtp_parse_rej(struct avdtp *session, sep->cfm->set_configuration(session, sep, stream, &err, sep->user_data); return TRUE; + case AVDTP_GET_CONFIGURATION: + if (!seid_rej_to_err(buf, size, &err)) + return FALSE; + error("GET_CONFIGURATION request rejected: %s (%d)", + avdtp_strerror(&err), err.err.error_code); + if (sep && sep->cfm && sep->cfm->get_configuration) + sep->cfm->get_configuration(session, sep, stream, &err, + sep->user_data); + return TRUE; case AVDTP_RECONFIGURE: if (!conf_rej_to_err(buf, size, &err)) return FALSE; -- 2.47.3