Message ID | 20240426144826.2608852-2-luiz.dentz@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 9b29784717f4682ca527c76c81b5ba92ba00c313 |
Headers | show |
Series | [BlueZ,v1,1/2] org.bluez.Gatt: Add org.bluez.Error.ImproperlyConfigured error to WriteValue | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/CheckPatch | success | CheckPatch PASS |
tedd_an/GitLint | fail | WARNING: I3 - ignore-body-lines: gitlint will be switching from using Python regex 'match' (match beginning) to 'search' (match anywhere) semantics. Please review your ignore-body-lines.regex option accordingly. To remove this warning, set general.regex-style-search=True. More details: https://jorisroovers.github.io/gitlint/configuration/#regex-style-search 1: T1 Title exceeds max length (87>80): "[BlueZ,v1,2/2] gatt-database: Implement support to org.bluez.Error.ImproperlyConfigured" |
tedd_an/IncrementalBuild | success | Incremental Build PASS |
diff --git a/src/gatt-database.c b/src/gatt-database.c index 7ca2f94222c6..d028ce012b99 100644 --- a/src/gatt-database.c +++ b/src/gatt-database.c @@ -2248,6 +2248,9 @@ static uint8_t dbus_error_to_att_ecode(const char *name, const char *msg, if (strcmp(name, ERROR_INTERFACE ".InProgress") == 0) return BT_ERROR_ALREADY_IN_PROGRESS; + if (strcmp(name, ERROR_INTERFACE ".ImproperlyConfigured")) + return BT_ERROR_CCC_IMPROPERLY_CONFIGURED; + if (strcmp(name, ERROR_INTERFACE ".NotPermitted") == 0) return perm_err;
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> This implements support for handling when applications reply with org.bluez.Error.ImproperlyConfigured the code will translate it to BT_ERROR_CCC_IMPROPERLY_CONFIGURED. Fixes: https://github.com/bluez/bluez/issues/827 --- src/gatt-database.c | 3 +++ 1 file changed, 3 insertions(+)