Linux bluetooth development
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@tieto.com>
To: Gowtham Anandha Babu <gowtham.ab@samsung.com>
Cc: linux-bluetooth@vger.kernel.org, d.kasatkin@samsung.com,
	bharat.panda@samsung.com, cpgs@samsung.com
Subject: Re: [PATCH ] android/socket: Add PBAP supported features bits
Date: Tue, 09 Dec 2014 14:24:15 +0100	[thread overview]
Message-ID: <157571858.6JfrHtjm1y@leonov> (raw)
In-Reply-To: <1418129488-12353-1-git-send-email-gowtham.ab@samsung.com>

Hi Gowtham,

On Tuesday 09 of December 2014 18:21:27 Gowtham Anandha Babu wrote:
> Add PBAP supported features in sdp record.

Isn't that a 1.2 feature? (AOSP supports only 1.1).

Same goes with MAP.

> ---
>  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;

-- 
BR
Szymon Janc

  parent reply	other threads:[~2014-12-09 13:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Szymon Janc [this message]
2014-12-09 13:46   ` [PATCH ] android/socket: Add PBAP " Gowtham Anandha Babu
2014-12-10  8:44     ` Szymon Janc
2014-12-10  8:51       ` Gowtham Anandha Babu

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=157571858.6JfrHtjm1y@leonov \
    --to=szymon.janc@tieto.com \
    --cc=bharat.panda@samsung.com \
    --cc=cpgs@samsung.com \
    --cc=d.kasatkin@samsung.com \
    --cc=gowtham.ab@samsung.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /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