From 73f29b83ddebafb74f141e092a8907d160bb7aa7 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 27 Feb 2013 15:03:08 +0200 Subject: [PATCH] AVRCP: Fix storing wrong UID counter 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 b0117de2c..abb902a78 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -2222,7 +2222,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); } -- 2.47.3