From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> By the AVRCP spec all messages uses big endian not little endian. --- profiles/audio/avrcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index 10bedc0..29b6eb1 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -2220,7 +2220,7 @@ static void avrcp_addressed_player_changed(struct avrcp *session, return; player->id = id; - player->uid_counter = bt_get_le16(&pdu->params[3]); + player->uid_counter = bt_get_be16(&pdu->params[3]); avrcp_get_media_player_list(session); } -- 1.8.1.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