diff options
author | Iulia Tanasescu <iulia.tanasescu@nxp.com> | 2023-04-19 16:43:52 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-04-19 13:45:59 -0700 |
commit | 180d1c9ad028310eb89de90f188153d37a309aca (patch) | |
tree | ea7f85b544684795b574cc50f9c3fdff4ecec9cb | |
parent | 4d197b859e57a9101e26a9ff341dba3da32ebf77 (diff) | |
download | bluez-180d1c9ad028310eb89de90f188153d37a309aca.tar.gz |
monitor/packet: Fix BIG encryption decoding
Fix incorrect decoding of the encryption parameter when logging
the LE BIG Create Sync command.
-rw-r--r-- | monitor/packet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor/packet.c b/monitor/packet.c index c6ff16eda..645e3f97e 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -5,6 +5,7 @@ * * Copyright (C) 2011-2014 Intel Corporation * Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org> + * Copyright 2023 NXP * * */ @@ -8808,7 +8809,7 @@ static void le_big_create_sync_cmd(uint16_t index, const void *data, print_field("BIG Handle: 0x%2.2x", cmd->handle); print_field("BIG Sync Handle: 0x%4.4x", le16_to_cpu(cmd->sync_handle)); print_field("Encryption: %s (0x%2.2x)", - cmd->encryption ? "Unencrypted" : "Encrypted", + cmd->encryption ? "Encrypted" : "Unencrypted", cmd->encryption); print_hex_field("Broadcast Code", cmd->bcode, 16); print_field("Maximum Number Subevents: 0x%2.2x", cmd->mse); |