From 5062b144675f7e3e8f3c24fae2187e751e2908fb Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 17 Apr 2013 11:17:21 +0300 Subject: [PATCH] tools: Add MAS profile attributes --- tools/sdptool.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/sdptool.c b/tools/sdptool.c index eb09f655c..0a04d5808 100644 --- a/tools/sdptool.c +++ b/tools/sdptool.c @@ -231,6 +231,12 @@ static struct attrib_def goep_attrib_names[] = { { 0x200, "GoepL2capPsm", NULL, 0 }, }; +/* Name of the various MAS attributes. See BT assigned numbers */ +static struct attrib_def mas_attrib_names[] = { + { 0x0315, "MASInstanceID", NULL, 0 }, + { 0x0316, "SupportedMessageTypes", NULL, 0 }, +}; + /* Same for the UUIDs. See BT assigned numbers */ static struct uuid_def uuid16_names[] = { /* -- Protocols -- */ @@ -318,7 +324,8 @@ static struct uuid_def uuid16_names[] = { { 0x112f, "Phonebook Access (PBAP) - PSE", NULL, 0 }, { 0x1130, "Phonebook Access (PBAP)", NULL, 0 }, { 0x1131, "Headset (HSP)", NULL, 0 }, - { 0x1132, "Message Access (MAP) - MAS", NULL, 0 }, + { 0x1132, "Message Access (MAP) - MAS", + mas_attrib_names, sizeof(mas_attrib_names)/sizeof(struct attrib_def) }, { 0x1133, "Message Access (MAP) - MNS", NULL, 0 }, { 0x1134, "Message Access (MAP)", NULL, 0 }, /* ... */ -- 2.47.3