linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH ] android/socket: Add PBAP supported features bits
@ 2014-12-09 12:51 Gowtham Anandha Babu
  2014-12-09 12:51 ` [PATCH ] android/socket: Add MAP " Gowtham Anandha Babu
  2014-12-09 13:24 ` [PATCH ] android/socket: Add PBAP " Szymon Janc
  0 siblings, 2 replies; 10+ messages in thread
From: Gowtham Anandha Babu @ 2014-12-09 12:51 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: d.kasatkin, bharat.panda, cpgs, Gowtham Anandha Babu

Add PBAP supported features in sdp record.
---
 android/socket.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/android/socket.c b/android/socket.c
index 2b836e9..f2cfd07 100644
--- a/android/socket.c
+++ b/android/socket.c
@@ -58,6 +58,8 @@
 /* Hardcoded MAP stuff needed for MAS SMS Instance.*/
 #define DEFAULT_MAS_INSTANCE	0x00
 
+#define DEFAULT_PBAP_SUPPORTED_FEATURES 0x00000003
+
 #define MAP_MSG_TYPE_SMS_GSM	0x02
 #define MAP_MSG_TYPE_SMS_CDMA	0x04
 #define DEFAULT_MAS_MSG_TYPE	(MAP_MSG_TYPE_SMS_GSM | MAP_MSG_TYPE_SMS_CDMA)
@@ -287,6 +289,7 @@ static sdp_record_t *create_pbap_record(uint8_t chan, const char *svc_name)
 	sdp_list_t *seq;
 	sdp_profile_desc_t profile[1];
 	uint8_t formats = 0x01;
+	uint8_t supft = DEFAULT_PBAP_SUPPORTED_FEATURES;
 	sdp_record_t *record;
 	uuid_t uuid;
 
@@ -304,6 +307,9 @@ static sdp_record_t *create_pbap_record(uint8_t chan, const char *svc_name)
 	sdp_attr_add_new(record, SDP_ATTR_SUPPORTED_REPOSITORIES, SDP_UINT8,
 								&formats);
 
+	sdp_attr_add_new(record, SDP_ATTR_PBAP_SUPPORTED_FEATURES, SDP_UINT32,
+								&supft);
+
 	sdp_list_free(seq, NULL);
 
 	return record;
-- 
1.9.1


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

end of thread, other threads:[~2014-12-10  8:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-09 12:51 [PATCH ] android/socket: Add PBAP supported features bits Gowtham Anandha Babu
2014-12-09 12:51 ` [PATCH ] android/socket: Add MAP " Gowtham Anandha Babu
2014-12-10  7:27   ` Luiz Augusto von Dentz
2014-12-10  8:36     ` Gowtham Anandha Babu
2014-12-10  8:42       ` Luiz Augusto von Dentz
2014-12-10  8:47         ` Gowtham Anandha Babu
2014-12-09 13:24 ` [PATCH ] android/socket: Add PBAP " Szymon Janc
2014-12-09 13:46   ` Gowtham Anandha Babu
2014-12-10  8:44     ` Szymon Janc
2014-12-10  8:51       ` Gowtham Anandha Babu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).