diff mbox series

[BlueZ,2/2] a2dp: Expose "Key missing" error

Message ID 20230806080109.1639693-3-simon.mikuda@streamunlimited.com
State New
Headers show
Series Report proper error on connect | expand

Commit Message

Simon Mikuda Aug. 6, 2023, 8:01 a.m. UTC
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 mbox series

Patch

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:
 		/*