From bc3cd6a3b91943e68d2beca263950dfaa720f7e1 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 14 Apr 2020 13:23:23 -0700 Subject: [PATCH] profile: Return -ENOENT for HSP AG HSP AG role doesn't have any supported features. --- src/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/profile.c b/src/profile.c index 7e27adb56..c2992e795 100644 --- a/src/profile.c +++ b/src/profile.c @@ -970,7 +970,7 @@ static int get_supported_features(const sdp_record_t *rec, const char *uuid) if (strcasecmp(uuid, HSP_AG_UUID) == 0) { /* HSP AG role does not provide any features */ - return 0; + return -ENOENT; } else if (strcasecmp(uuid, HSP_HS_UUID) == 0) { /* HSP HS role provides Remote Audio Volume Control */ data = sdp_data_get(rec, SDP_ATTR_REMOTE_AUDIO_VOLUME_CONTROL); -- 2.47.3