Re: [PATCH BlueZ 1/2] audio/avdtp: Fix suspending only the first SEID

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Mon, Aug 10, 2015 at 1:24 PM, Luiz Augusto von Dentz
<luiz.dentz@xxxxxxxxx> wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
>
> 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 7e61280..1f79e74 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 37f7a59..9c33373 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.1.0

Applied.



-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux