summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnderson Lizardo <anderson.lizardo@openbossa.org>2013-02-15 11:07:53 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2013-02-18 10:01:23 +0200
commit4c07609a596dddcf64d10c737a8e829360ea36ae (patch)
tree02bfa84dcdd47eaf637bd9d3b3544889b2dd99d9 /lib
parentbbabc6792ceec9894f9f67f2fa72c61f91b2f5e0 (diff)
lib: Add comment to BluetoothProfileDescriptorList parsing workaround
Diffstat (limited to 'lib')
-rw-r--r--lib/sdp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sdp.c b/lib/sdp.c
index 396567fb0..61598bb97 100644
--- a/lib/sdp.c
+++ b/lib/sdp.c
@@ -2091,6 +2091,11 @@ int sdp_get_profile_descs(const sdp_record_t *rec, sdp_list_t **profDescSeq)
uint16_t version = 0x100;
if (SDP_IS_UUID(seq->dtd)) {
+ /* Mac OS X 10.7.3 and old Samsung phones do not comply
+ * to the SDP specification for
+ * BluetoothProfileDescriptorList. This workaround
+ * allows to properly parse UUID/version from SDP
+ * record published by these systems. */
sdp_data_t *next = seq->next;
uuid = &seq->val.uuid;
if (next && next->dtd == SDP_UINT16) {