From: Gowtham Anandha Babu <gowtham.ab@samsung.com>
To: linux-bluetooth@vger.kernel.org
Cc: d.kasatkin@samsung.com, bharat.panda@samsung.com,
cpgs@samsung.com, luiz.dentz@gmail.com,
Gowtham Anandha Babu <gowtham.ab@samsung.com>
Subject: [PATCH 1/3] obexd/map: Add support for MAP feature bits
Date: Mon, 20 Oct 2014 20:34:27 +0530 [thread overview]
Message-ID: <1413817469-4255-1-git-send-email-gowtham.ab@samsung.com> (raw)
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
next reply other threads:[~2014-10-20 15:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-20 15:04 Gowtham Anandha Babu [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1413817469-4255-1-git-send-email-gowtham.ab@samsung.com \
--to=gowtham.ab@samsung.com \
--cc=bharat.panda@samsung.com \
--cc=cpgs@samsung.com \
--cc=d.kasatkin@samsung.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox