Diff between d2cf5eca8aa0f822568639b39b8480ca2527eafe and 75b6e79d9a0c1d483b9168d417fb13ba2f934426

Changed Files

File Additions Deletions Status
monitor/l2cap.c +4 -2 modified

Full Patch

diff --git a/monitor/l2cap.c b/monitor/l2cap.c
index 725a156..5cde7a5 100644
--- a/monitor/l2cap.c
+++ b/monitor/l2cap.c
@@ -614,7 +614,8 @@ static void print_config_options(const struct l2cap_frame *frame,
 
 	while (consumed < size - 2) {
 		const char *str = "Unknown";
-		uint8_t type = data[consumed];
+		uint8_t type = data[consumed] & 0x7f;
+		uint8_t hint = data[consumed] & 0x80;
 		uint8_t len = data[consumed + 1];
 		uint8_t expect_len = 0;
 		int i;
@@ -627,7 +628,8 @@ static void print_config_options(const struct l2cap_frame *frame,
 			}
 		}
 
-		print_field("Option: %s (0x%2.2x)", str, type);
+		print_field("Option: %s (0x%2.2x) [%s]", str, type,
+						hint ? "hint" : "mandatory");
 
 		if (expect_len == 0) {
 			consumed += 2;