[PATCH] monitor/att: Fix Set Member Lock decoding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/monitor/att.c b/monitor/att.c
index 3b78884bc..05784e9f4 100644
--- a/monitor/att.c
+++ b/monitor/att.c
@@ -1760,10 +1760,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);
-- 
2.39.1




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux