bluez5: backend_native: Fix +BRSF parsing for HFP HF

This commit is contained in:
Frédéric Danis 2021-02-16 14:21:11 +01:00 committed by Wim Taymans
parent be7caf0e66
commit 23823867b0

View file

@ -449,8 +449,8 @@ static bool rfcomm_hfp_hf(struct spa_source *source, char* buf)
/* get next token */ /* get next token */
token = strtok(NULL, separators); token = strtok(NULL, separators);
features = atoi(token); features = atoi(token);
if (((features & (SPA_BT_HFP_HF_FEATURE_CODEC_NEGOTIATION)) != 0) && if (((features & (SPA_BT_HFP_AG_FEATURE_CODEC_NEGOTIATION)) != 0) &&
rfcomm->msbc_supported_by_hfp) rfcomm->msbc_supported_by_hfp)
rfcomm->codec_negotiation_supported = true; rfcomm->codec_negotiation_supported = true;
} else if (strncmp(token, "+BCS", 4) == 0) { } else if (strncmp(token, "+BCS", 4) == 0) {
char *cmd; char *cmd;