From 82ef0a6b94016884a75acba8a7e1c6ed81bffe5d Mon Sep 17 00:00:00 2001 From: xiongweichao Date: Wed, 13 Nov 2024 14:53:34 +0800 Subject: [PATCH] fix(bt/bluedroid): Fixed the incorrect error code returned when receiving an invalid command --- components/bt/host/bluedroid/stack/avrc/avrc_pars_tg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/host/bluedroid/stack/avrc/avrc_pars_tg.c b/components/bt/host/bluedroid/stack/avrc/avrc_pars_tg.c index c30bf94a3b..fe04ca8f32 100644 --- a/components/bt/host/bluedroid/stack/avrc/avrc_pars_tg.c +++ b/components/bt/host/bluedroid/stack/avrc/avrc_pars_tg.c @@ -71,7 +71,7 @@ static tAVRC_STS avrc_pars_vendor_cmd(tAVRC_MSG_VENDOR *p_msg, tAVRC_COMMAND *p_ p++; /* skip the reserved byte */ BE_STREAM_TO_UINT16 (len, p); if ((len + 4) != (p_msg->vendor_len)) { - status = AVRC_STS_INTERNAL_ERR; + status = AVRC_STS_NOT_FOUND; } if (status != AVRC_STS_NO_ERROR) {