Merge branch 'bugfix/rx_invalid_cmd_err_code_v5.4' into 'release/v5.4'

fix(bt/bluedroid): Fixed the incorrect error code returned when receiving an invalid command(v5.4)

See merge request espressif/esp-idf!34987
This commit is contained in:
Jiang Jiang Jian 2024-11-20 19:12:23 +08:00
commit 48ed77c9cc

View File

@ -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) {