From 23823867b0e3fffba69e5e5f2b5cfc8bf76589a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= Date: Tue, 16 Feb 2021 14:21:11 +0100 Subject: [PATCH] bluez5: backend_native: Fix +BRSF parsing for HFP HF --- spa/plugins/bluez5/backend-native.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/bluez5/backend-native.c b/spa/plugins/bluez5/backend-native.c index 84f6881a8..8c78497d2 100644 --- a/spa/plugins/bluez5/backend-native.c +++ b/spa/plugins/bluez5/backend-native.c @@ -449,8 +449,8 @@ static bool rfcomm_hfp_hf(struct spa_source *source, char* buf) /* get next token */ token = strtok(NULL, separators); features = atoi(token); - if (((features & (SPA_BT_HFP_HF_FEATURE_CODEC_NEGOTIATION)) != 0) && - rfcomm->msbc_supported_by_hfp) + if (((features & (SPA_BT_HFP_AG_FEATURE_CODEC_NEGOTIATION)) != 0) && + rfcomm->msbc_supported_by_hfp) rfcomm->codec_negotiation_supported = true; } else if (strncmp(token, "+BCS", 4) == 0) { char *cmd;