From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> params_len is passed as function argument and needs to be in host byte order. --- unit/test-avrcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit/test-avrcp.c b/unit/test-avrcp.c index f222df8..a43985a 100644 --- a/unit/test-avrcp.c +++ b/unit/test-avrcp.c @@ -323,7 +323,7 @@ static uint8_t avrcp_handle_get_capabilities(struct avrcp *session, } fail: - *params_len = htons(1); + *params_len = 1; params[0] = AVRCP_STATUS_INVALID_PARAM; return AVC_CTYPE_REJECTED; -- 1.8.3.2 -- 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