2023-08-06 08:27:58

by Simon Mikuda

[permalink] [raw]
Subject: [PATCH BlueZ 2/2] a2dp: Expose "Key missing" error

This error is not expected and retries will likely end up with same error.
---
profiles/audio/a2dp.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index 47b5dd7c3..b43161a13 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
@@ -307,6 +307,7 @@ static int error_to_errno(struct avdtp_error *err)
switch (perr) {
case EHOSTDOWN:
case ECONNABORTED:
+ case EBADE:
return -perr;
default:
/*
--
2.34.1