monitor/att: Fix Set Member Lock decoding
authorMarcin Kraglak <marcin.kraglak@telink-semi.com>
Mon, 30 Jan 2023 09:13:36 +0000 (10:13 +0100)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:11:34 +0000 (15:41 +0530)
According to CSIS specification v1.0.1: "Allowed values for the Set
Member Lock characteristic are Unlocked (corresponding to the
numeric value 0x01) and Locked (corresponding to the numeric
value 0x02); all other values are RFU".

monitor/att.c

index 20162e6..f200512 100644 (file)
@@ -1759,10 +1759,10 @@ static void csip_lock_read(const struct l2cap_frame *frame)
 
        switch (lock) {
        case 0x01:
-               print_field("    Locked (0x%02x)", lock);
+               print_field("    Unlocked (0x%02x)", lock);
                break;
        case 0x02:
-               print_field("    Unlocked (0x%02x)", lock);
+               print_field("    Locked (0x%02x)", lock);
                break;
        default:
                print_field("    RFU (0x%02x)", lock);