From 06a7852b69eda34ad5da609897c46191cffc4973 Mon Sep 17 00:00:00 2001 From: Par-Gunnar Hjalmdahl Date: Tue, 11 Sep 2012 08:16:26 +0200 Subject: [PATCH] avctp: Fix reply for message with invalid PID 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 03f3e7f1d..4e0e8dcd7 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; } -- 2.47.3