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:
xiongweichao
2026-06-03 19:23:52 +08:00
parent aa222369e7
commit bc3456c66b

View File

@@ -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;