monitor/packet: Fix BIG encryption decoding
authorIulia Tanasescu <iulia.tanasescu@nxp.com>
Wed, 19 Apr 2023 13:43:52 +0000 (16:43 +0300)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:41:34 +0000 (16:11 +0530)
Fix incorrect decoding of the encryption parameter when logging
the LE BIG Create Sync command.

monitor/packet.c

index 0d310ca..99f8e6f 100755 (executable)
@@ -5,6 +5,7 @@
  *
  *  Copyright (C) 2011-2014  Intel Corporation
  *  Copyright (C) 2002-2010  Marcel Holtmann <marcel@holtmann.org>
+ *  Copyright 2023 NXP
  *
  *
  */
@@ -8802,7 +8803,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);