In the Bluetooth® Profile Tuning Suite (PTS), I'm trying to run the AVDTP/SRC/ACP/TRA/BTR/BI-01-C test. The test scenario is described in this PDF on page 140.
In short: Test Purpose 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. The test sends a malformed AVDTP SetConfiguration command where the issue is in the Capabilities list—it sets the length to 0x01 instead of 0x00. The IUT (the device being tested) should recognize this and reject the command. However, instead of rejecting it, the IUT accepts the command and responds with a Response Accept message, causing the test to fail.
I'm running Ubuntu 22.04.2 LTS with BlueZ 5.64.
In the BlueZ source code, the profiles/audio/avdtp.c file's avdtp_setconf_cmd function appears to handle this. At line 1558, there is an explicit check for this exact issue, yet the test still fails.
Is there any known issue with this version of BlueZ failing this test, or do you have any suggestions on how to fix it?