Diff between 8a73c868b79bdf589a1b396e83beb457f5ba5ff0 and bc3cd6a3b91943e68d2beca263950dfaa720f7e1

Changed Files

File Additions Deletions Status
src/profile.c +1 -1 modified

Full Patch

diff --git a/src/profile.c b/src/profile.c
index 7e27adb..c2992e7 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);