mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
fix(bt): skip unknown codecs when parsing AT+BAC
Peers may report custom or non-standard codec UUIDs in AT+BAC alongside CVSD/mSBC. Returning BTA_AG_CODEC_NONE on the first unknown entry discarded already-parsed standard codecs. Log unknown UUIDs and continue parsing so negotiated capabilities still reflect supported codecs.
This commit is contained in:
@@ -696,7 +696,7 @@ static tBTA_AG_PEER_CODEC bta_ag_parse_bac(tBTA_AG_SCB *p_scb, char *p_s)
|
||||
|
||||
default:
|
||||
APPL_TRACE_ERROR("Unknown Codec UUID(%d) received", uuid_codec);
|
||||
return BTA_AG_CODEC_NONE;
|
||||
break;
|
||||
}
|
||||
if (cont) {
|
||||
p_s = p + 1;
|
||||
|
||||
Reference in New Issue
Block a user