From ea686c7dd3afdfbf93d27fcb1325e21a6162393e Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Thu, 26 Apr 2018 22:28:26 +0200 Subject: [PATCH] avdtp target: fix parsing vendor dependent cmds --- src/classic/avrcp_target.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/classic/avrcp_target.c b/src/classic/avrcp_target.c index 2d783655d..f7e416411 100644 --- a/src/classic/avrcp_target.c +++ b/src/classic/avrcp_target.c @@ -846,9 +846,7 @@ static void avrcp_handle_l2cap_data_packet_for_signaling_connection(avrcp_connec pdu_id = pdu[0]; // 1 - reserved // 2-3 param length, - printf_hexdump(packet, size); - - uint16_t length = big_endian_read_16(pdu, 1); + uint16_t length = big_endian_read_16(pdu, 2); memcpy(connection->cmd_operands, company_id, 3); connection->cmd_operands_length = 3; switch (pdu_id){