[PATCHv2 1/1] parser/sdp: parse MAS Instance ID and Message Type

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

 



From: Biman Paul <biman.paul@xxxxxxxxxxx>

Parsing Support added in SDP record:
1. MAS Instance ID in MAP
2. Message Types supported by MAS

Without this patch:
   aid 0x0100 (SrvName)
      str "MAP SMS/MMS"
   aid 0x0315 (unknown)
      uint 0x0
   aid 0x0316 (unknown)
      uint 0xe

Using this patch:
   aid 0x0100 (SrvName)
      str "MAP SMS/MMS"
   aid 0x0315 (MASInstanceID)
      uint 0x0
   aid 0x0316 (SupportedMessageTypes)
      uint 0xe
---
 tools/parser/sdp.c | 2 ++
 tools/parser/sdp.h | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/tools/parser/sdp.c b/tools/parser/sdp.c
index dba9a36..cc69570 100644
--- a/tools/parser/sdp.c
+++ b/tools/parser/sdp.c
@@ -211,6 +211,8 @@ static sdp_attr_id_nam_lookup_table_t sdp_attr_id_nam_lookup_table[] = {
 	{ SDP_ATTR_ID_SUPPORTED_FUNCTIONS,               "SuppFunctions"      }, /* Imaging */
 	{ SDP_ATTR_ID_TOTAL_IMAGING_DATA_CAPACITY,       "SuppTotalCapacity"  }, /* Imaging */
 	{ SDP_ATTR_ID_SUPPORTED_REPOSITORIES,            "SuppRepositories"   }, /* PBAP */
+	{ SDP_ATTR_ID_MAS_INSTANCE_ID,                   "MASInstanceID"      }, /* MAS ID */
+	{ SDP_ATTR_ID_MAP_SUPPORTED_TYPES,            "SupportedMessageTypes" }, /* Message Types */
 };
 
 #define SDP_ATTR_ID_NAM_LOOKUP_TABLE_SIZE \
diff --git a/tools/parser/sdp.h b/tools/parser/sdp.h
index ed55a23..21d2e45 100644
--- a/tools/parser/sdp.h
+++ b/tools/parser/sdp.h
@@ -157,5 +157,7 @@
 #define SDP_ATTR_ID_SUPPORTED_FUNCTIONS                0x0312 /* Imaging */
 #define SDP_ATTR_ID_TOTAL_IMAGING_DATA_CAPACITY        0x0313 /* Imaging */
 #define SDP_ATTR_ID_SUPPORTED_REPOSITORIES             0x0314 /* PBAP */
+#define SDP_ATTR_ID_MAS_INSTANCE_ID                    0x0315 /* MAS ID */
+#define SDP_ATTR_ID_MAP_SUPPORTED_TYPES                0x0316 /* Message Types */
 
 #endif /* __SDP_H */
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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