summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-11-23 10:25:53 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-11-23 10:32:24 -0800
commitd83f1d480a15e0229ff47c197e0145a4640e626a (patch)
tree4544d0b2353a3637766ff87e849c6ca80c9b8e62
parent326d70edd99c3f21cf299dba55214e2c8957e622 (diff)
downloadbluez-d83f1d480a15e0229ff47c197e0145a4640e626a.tar.gz
avdtp: Fix not sending GetCapabilities
It remote SEP has no codec capabilities it must be read with GetCapabilities/GetAllCapabilities otherwise we cannot match it with a local SEP.
-rw-r--r--profiles/audio/avdtp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c
index ff0a124c3..1093a3543 100644
--- a/profiles/audio/avdtp.c
+++ b/profiles/audio/avdtp.c
@@ -2706,7 +2706,8 @@ static gboolean avdtp_discover_resp(struct avdtp *session,
sep = find_remote_sep(session->seps, resp->seps[i].seid);
if (sep && sep->type == resp->seps[i].type &&
- sep->media_type == resp->seps[i].media_type)
+ sep->media_type == resp->seps[i].media_type &&
+ sep->codec)
continue;
if (resp->seps[i].inuse && !stream)