Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/3] obexd/map: Add support for MAP feature bits
@ 2014-10-20 15:04 Gowtham Anandha Babu
  2014-10-20 15:04 ` [PATCH 2/3] src/profile: Add feature bits to MAS SDP record Gowtham Anandha Babu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gowtham Anandha Babu @ 2014-10-20 15:04 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: d.kasatkin, bharat.panda, cpgs, luiz.dentz, Gowtham Anandha Babu

Handles MAP supported feature bits as per the
MAP 1.2 specs section 7.1.1.
---
 obexd/client/map.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/obexd/client/map.c b/obexd/client/map.c
index 44db96c..43b0471 100644
--- a/obexd/client/map.c
+++ b/obexd/client/map.c
@@ -100,6 +100,7 @@ struct map_data {
 	GHashTable *messages;
 	int16_t mas_instance_id;
 	uint8_t supported_message_types;
+	uint32_t supported_features;
 };
 
 struct pending_request {
@@ -2003,6 +2004,14 @@ static void parse_service_record(struct map_data *map)
 		map->supported_message_types = *(uint8_t *)data;
 	else
 		DBG("Failed to read supported message types");
+
+	/* Supported Feature Bits */
+	data = obc_session_get_attribute(map->session,
+					SDP_ATTR_MAP_SUPPORTED_FEATURES);
+	if(data != NULL)
+		map->supported_features = *(uint32_t *)data;
+	else
+		map->supported_features = 0x0000001f;
 }
 
 static int map_probe(struct obc_session *session)
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-22 10:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-20 15:04 [PATCH 1/3] obexd/map: Add support for MAP feature bits Gowtham Anandha Babu
2014-10-20 15:04 ` [PATCH 2/3] src/profile: Add feature bits to MAS SDP record Gowtham Anandha Babu
2014-10-20 15:04 ` [PATCH 3/3] tools/sdptool: Add MAP supported features Gowtham Anandha Babu
2014-10-22 10:44 ` [PATCH 1/3] obexd/map: Add support for MAP feature bits Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox