Skip to contentSkip to conversation

avdtp: Fix state check before sending delay report

PATCH Applied Arkadiusz Bokowy 3 participants 3 messages Oct 5, 2024 – Oct 8, 2024 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 avdtp: Fix state check before sending delay report

The function which handles the incoming delay report command was fixed in 2fd62cd. However, the function which send such command was not updated. This commit fixes that.

Also, indicate that the stream does not support delay reporting with an appropriate error code.

---
 profiles/audio/avdtp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
profiles/audio/avdtp.c +2 -1
index 0a923ac6c..448ee2730 100644
@@ -3769,11 +3769,12 @@ int avdtp_delay_report(struct avdtp *session, struct avdtp_stream *stream,
 		return -EINVAL;
 
 	if (stream->lsep->state != AVDTP_STATE_CONFIGURED &&
+				stream->lsep->state != AVDTP_STATE_OPEN &&
 				stream->lsep->state != AVDTP_STATE_STREAMING)
 		return -EINVAL;
 
 	if (!stream->delay_reporting || session->version < 0x0103)
-		return -EINVAL;
+		return -ENOTSUP;
 
 	stream->delay = delay;
 
Signature · 1 line
2.39.5
#1 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=895894

---Test result---

Test Summary:

CheckPatch                    PASS      0.45 seconds
GitLint                       PASS      0.32 seconds
BuildEll                      PASS      23.99 seconds
BluezMake                     PASS      1517.49 seconds
MakeCheck                     PASS      13.42 seconds
MakeDistcheck                 PASS      175.51 seconds
CheckValgrind                 PASS      247.86 seconds
CheckSmatch                   PASS      349.28 seconds
bluezmakeextell               PASS      117.39 seconds
IncrementalBuild              PASS      1389.91 seconds
ScanBuild                     PASS      1007.73 seconds

---
Regards,
Linux Bluetooth

#2 lore raw
In reply to Arkadiusz Bokowy
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Hello:

This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Quoted 8 lines · On Sat, 5 Oct 2024 23:15:10 +0200 you wrote:

The function which handles the incoming delay report command was fixed in 2fd62cd. However, the function which send such command was not updated. This commit fixes that.

Also, indicate that the stream does not support delay reporting with an appropriate error code.

[...]

Here is the summary with links:
- [BlueZ] avdtp: Fix state check before sending delay report

    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=bd7d49d54aa3

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html