Re: [PATCH] avctp: Fix reply for message with invalid PID

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

 



Hi,

On Tue, Sep 11, 2012 at 9:16 AM, Par-Gunnar Hjalmdahl
<par-gunnar.hjalmdahl@xxxxxxxxxxxxxx> wrote:
> Reply for control message with invalid (not registered for reception
> of messages) PID should not have message information field present.
>
> This was affecting AVCTP qualification test case TP/NFR/BI-01-C.
> ---
>  audio/avctp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/audio/avctp.c b/audio/avctp.c
> index 03f3e7f..4e0e8dc 100644
> --- a/audio/avctp.c
> +++ b/audio/avctp.c
> @@ -500,7 +500,7 @@ static gboolean session_cb(GIOChannel *chan, GIOCondition cond,
>
>         if (avctp->pid != htons(AV_REMOTE_SVCLASS_ID)) {
>                 avctp->ipid = 1;
> -               avc->code = AVC_CTYPE_REJECTED;
> +               packet_size = AVCTP_HEADER_LENGTH;
>                 goto done;
>         }
>
> --
> 1.7.11.3

Pushed, thanks.


-- 
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