summaryrefslogtreecommitdiff
path: root/android/avdtp.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-11-29 15:00:11 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-12-05 12:36:03 +0200
commit1ce1db5002f3b7714d1788a68ca06fd1849b68a0 (patch)
tree257ed45a87767197b46afa2dad8853e31a6fac6f /android/avdtp.c
parent0a3a6339df1a564ddc844ec58589f4e2420e578e (diff)
downloadbluez-1ce1db5002f3b7714d1788a68ca06fd1849b68a0.tar.gz
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.
Diffstat (limited to 'android/avdtp.c')
-rw-r--r--android/avdtp.c9
1 files changed, 9 insertions, 0 deletions
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;