Diff between 83064481481d23523e5cdd04dac2c6f2056bc066 and 027c6819f1af77351ae339c41ccc0e7d2eb59fb4

Changed Files

File Additions Deletions Status
audio/control.c +2 -1 modified

Full Patch

diff --git a/audio/control.c b/audio/control.c
index 3db7d8e..57a4edc 100644
--- a/audio/control.c
+++ b/audio/control.c
@@ -590,7 +590,8 @@ static gboolean control_cb(GIOChannel *chan, GIOCondition cond,
 			operands[1] = SUBUNIT_PANEL << 3;
 		DBG("reply to %s", avrcp->opcode == OP_UNITINFO ?
 				"OP_UNITINFO" : "OP_SUBUNITINFO");
-	} else if (avrcp->opcode == OP_VENDORDEP) {
+	} else if (avctp->cr == AVCTP_COMMAND &&
+			avrcp->opcode == OP_VENDORDEP) {
 		/* Reply with REJECT msg with error code 0x0
 		 * (Invalid Command) as defined in AVRCP spec (6.15.1) */
 		struct avrcp_spec_avc_pdu *pdu = (void *) operands;