From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> ENOSYS correspond to function not implemented which is exactly what the OBEX error code means. Also since EINVAL means invalid argument that now map to OBEX bad request --- gobex/gobex.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/gobex/gobex.c b/gobex/gobex.c index 0ced782..0665749 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -1482,11 +1482,12 @@ guint8 g_obex_errno_to_rsp(int err) return G_OBEX_RSP_FORBIDDEN; case -ENOENT: return G_OBEX_RSP_NOT_FOUND; + case -EINVAL: case -EBADR: return G_OBEX_RSP_BAD_REQUEST; case -EFAULT: return G_OBEX_RSP_SERVICE_UNAVAILABLE; - case -EINVAL: + case -ENOSYS: return G_OBEX_RSP_NOT_IMPLEMENTED; case -ENOTEMPTY: case -EEXIST: -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html