Re: [PATCH] monitor/avdtp: Correct bit mask for TSEP

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

 



Hi Grzegorz,

On Wednesday, 7 June 2017 10:39:44 CEST Grzegorz Kolodziejczyk wrote:
> According to AVDP specification 1.3 (8.6.2 Stream End Point Discovery
> Response), TSEP bit is on 3rd position of 3rd frame byte.
> ---
>  monitor/avdtp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/monitor/avdtp.c b/monitor/avdtp.c
> index 006daf3..f5ef4c0 100644
> --- a/monitor/avdtp.c
> +++ b/monitor/avdtp.c
> @@ -368,7 +368,7 @@ static bool avdtp_discover(struct avdtp_frame
> *avdtp_frame) print_field("%*cMedia Type: %s (0x%02x)", 2, ' ',
>  					mediatype2str(info >> 4), info >> 4);
>  			print_field("%*cSEP Type: %s (0x%02x)", 2, ' ',
> -						info & 0x04 ? "SNK" : "SRC",
> +						info & 0x08 ? "SNK" : "SRC",
>  						(info >> 3) & 0x01);
>  			print_field("%*cIn use: %s", 2, ' ',
>  						seid & 0x02 ? "Yes" : "No");


Applied, thanks.

-- 
pozdrawiam
Szymon Janc
--
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