summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2015-08-10 13:09:05 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2015-08-11 13:19:23 +0300
commitb5c6b1ed97ee6fe03092223c5f4ba8800a186519 (patch)
tree2a588641e27551c4e9f18d9014a5a7301cfc7dd9 /android
parent0d2a9a83a7dad08238eb97794d92a6e135f386fe (diff)
downloadbluez-b5c6b1ed97ee6fe03092223c5f4ba8800a186519.tar.gz
audio/avdtp: Fix suspending only the first SEID
AVDTP_Suspend can contain several Stream Endpoing IDs to be suspended.
Diffstat (limited to 'android')
-rw-r--r--android/avdtp.c2
1 files changed, 1 insertions, 1 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;