summaryrefslogtreecommitdiff
path: root/monitor/avctp.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-01-14 14:02:05 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-01-14 14:02:05 -0800
commit9822898fd5f59a255b7a957303914bc557f9cf44 (patch)
tree0dd8158db8c227bd98dd9b41e195a6f7cf762c50 /monitor/avctp.c
parent7a8d1be9755f39ca2d3060b4ba9f9ce58c83c0ed (diff)
downloadbluez-9822898fd5f59a255b7a957303914bc557f9cf44.tar.gz
monitor/avctp: Fix parsing of GetElementAttribute
AVRCP byte order is always big endian: Audio/Video Remote Control / Profile Specification - Page 20: 'Transfer Octet Order; Packets shall transfer multiple-octet fields in standard network octet order (Big Endian), with more significant (high-order) octets being transferred before less-significant (low-order) octets.'
Diffstat (limited to 'monitor/avctp.c')
-rw-r--r--monitor/avctp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/avctp.c b/monitor/avctp.c
index dc03195a8..fb2628282 100644
--- a/monitor/avctp.c
+++ b/monitor/avctp.c
@@ -1192,7 +1192,7 @@ static bool avrcp_get_element_attributes(struct avctp_frame *avctp_frame,
for (; num > 0; num--) {
uint32_t attr;
- if (!l2cap_frame_get_le32(frame, &attr))
+ if (!l2cap_frame_get_be32(frame, &attr))
return false;
print_field("%*cAttributeID: 0x%08x (%s)", (indent - 8),