diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-04-14 13:23:23 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-04-14 13:24:34 -0700 |
commit | bc3cd6a3b91943e68d2beca263950dfaa720f7e1 (patch) | |
tree | 8f9bb8e40c8e14400af5646ceb0478846aad7d80 /src/profile.c | |
parent | 8a73c868b79bdf589a1b396e83beb457f5ba5ff0 (diff) | |
download | bluez-bc3cd6a3b91943e68d2beca263950dfaa720f7e1.tar.gz |
profile: Return -ENOENT for HSP AG
HSP AG role doesn't have any supported features.
Diffstat (limited to 'src/profile.c')
-rw-r--r-- | src/profile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |