From 3a916a006756aff954565f613c6163bb59dae26a Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Thu, 9 Jun 2011 15:55:50 +0200 Subject: [PATCH] Fix AVCTP 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 1.3 qualification test case TP/NFR/BI-01-C. --- audio/control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/control.c b/audio/control.c index 9ede0f2fe..3db7d8e08 100644 --- a/audio/control.c +++ b/audio/control.c @@ -566,7 +566,7 @@ static gboolean control_cb(GIOChannel *chan, GIOCondition cond, } else if (avctp->pid != htons(AV_REMOTE_SVCLASS_ID)) { avctp->ipid = 1; avctp->cr = AVCTP_RESPONSE; - avrcp->code = CTYPE_REJECTED; + packet_size = sizeof(*avctp); } else if (avctp->cr == AVCTP_COMMAND && avrcp->code == CTYPE_CONTROL && avrcp->subunit_type == SUBUNIT_PANEL && -- 2.47.3