From b5c6b1ed97ee6fe03092223c5f4ba8800a186519 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 10 Aug 2015 13:09:05 +0300 Subject: [PATCH] audio/avdtp: Fix suspending only the first SEID AVDTP_Suspend can contain several Stream Endpoing IDs to be suspended. --- android/avdtp.c | 2 +- profiles/audio/avdtp.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/android/avdtp.c b/android/avdtp.c index 7e61280c4..1f79e7427 100644 --- a/android/avdtp.c +++ b/android/avdtp.c @@ -1678,7 +1678,7 @@ static gboolean avdtp_suspend_cmd(struct avdtp *session, uint8_t transaction, for (i = 0; i < seid_count; i++, seid++) { failed_seid = seid->seid; - sep = find_local_sep_by_seid(session, req->first_seid.seid); + sep = find_local_sep_by_seid(session, seid->seid); if (!sep || !sep->stream) { err = AVDTP_BAD_ACP_SEID; goto failed; diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c index 37f7a59ff..9c333737e 100644 --- a/profiles/audio/avdtp.c +++ b/profiles/audio/avdtp.c @@ -1822,8 +1822,7 @@ static gboolean avdtp_suspend_cmd(struct avdtp *session, uint8_t transaction, for (i = 0; i < seid_count; i++, seid++) { failed_seid = seid->seid; - sep = find_local_sep_by_seid(session, - req->first_seid.seid); + sep = find_local_sep_by_seid(session, seid->seid); if (!sep || !sep->stream) { err = AVDTP_BAD_ACP_SEID; goto failed; -- 2.47.3