Commit: f2120e3ded0656c8eda3d8058ee35654aba3fd09
Parent: de22ef2bac4ab332dcb27611d86d8f62ccbb9cb6
Author: Frédéric Danis <frederic.danis@collabora.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-03-26 16:17:39
Tree: a26963ed2219d07f0dc84e5bdad9592569b9d7a3

profiles/avdtp: Fix reply for bad media transport format Currently the avdtp_setconf_cmd() fails to check the capability length of the Media Transport Service Category, which should be 0, because caps_to_list() doesn't add it to the list of services as it should be bigger than packet boundary. This commit adds an &err parameter to caps_to_list() and set the error to AVDTP_BAD_MEDIA_TRANSPORT_FORMAT if Media Transport capability as invalid length. This is required for passing AVDTP/SNK/ACP/TRA/BTR/BI-01-C PTS test case: To verify that the IUT (ACP) is able to issue a set configuration reject response to the INT if the format of the media transport is incorrect.

Diffstat

M profiles/audio/avdtp.c | 35 ++++++++++++++++++++- - - - - - - - - - - - - - -

1 files changed, 20 insertions(+), 15 deletions(-)

View Full Diff | Patch