Return-Path: MIME-Version: 1.0 In-Reply-To: <1249589381.21101.22.camel@localhost.localdomain> References: <1249588984-9043-1-git-send-email-jaikumar@google.com> <1249589381.21101.22.camel@localhost.localdomain> From: Jaikumar Ganesh Date: Thu, 6 Aug 2009 14:00:30 -0700 Message-ID: Subject: Re: [PATCH] Modify PBAP SDP record. To: Marcel Holtmann Cc: linux-bluetooth@vger.kernel.org, Zhu Lan Content-Type: multipart/mixed; boundary=00163630f1d71ad0d804707f6a1a List-ID: --00163630f1d71ad0d804707f6a1a Content-Type: multipart/alternative; boundary=00163630f1d71ad0cf04707f6a18 --00163630f1d71ad0cf04707f6a18 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Marcel, On Thu, Aug 6, 2009 at 1:09 PM, Marcel Holtmann wrote: > Hi Jaikumar, > > > Fix to pass PTS case TC_SDAS_BV_03_I(since PTS3.2 update2). > > The code tried to append the UINT type value to the supported > > respositories. However, the wrong function sdp_seq_alloc() > > was used. This function adds 2 redundant bytes (SDP_SEQ8 as > > 0x35, seq) ahead of 0x08, so that latest PTS IOPT will fail. > > According to spec, PBAP attributes should report 0x08 0x01 > > or 0x08 0x03 right after 0x0314. The correct function to use > > is sdp_data_alloc(), with clean 0x08 0x01 appended as > > SDP_ATTR_SUPPORTED_REPOSITORIES. > > --- > > tools/sdptool.c | 9 ++------- > > 1 files changed, 2 insertions(+), 7 deletions(-) > > can I get a version of this patch that applies cleanly when using git am > please. Attached. Thanks > > > Regards > > Marcel > > > --00163630f1d71ad0cf04707f6a18 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Marcel,

On Thu, Aug 6, 2009 at 1:09 PM= , Marcel Holtmann <marcel@holtmann.org> wrote:
Hi Jaikumar,

> Fix to pass PTS case TC_SDAS_BV_03_I(since PTS3.2 update2).
> The code tried to append the UINT type value to the supported
> respositories. =A0However, the wrong function sdp_seq_alloc()
> was used. This function adds 2 redundant bytes (SDP_SEQ8 as
> 0x35, seq) ahead of 0x08, so that latest PTS IOPT will fail.
> According to spec, PBAP attributes should report 0x08 0x01
> or 0x08 0x03 right after 0x0314. The correct function to use
> is sdp_data_alloc(), with clean 0x08 0x01 appended as
> SDP_ATTR_SUPPORTED_REPOSITORIES.
> ---
> =A0tools/sdptool.c | =A0 =A09 ++-------
> =A01 files changed, 2 insertions(+), 7 deletions(-)

can I get a version of this patch that applies cleanly when using git= am
please.

Attached.

Thanks


Regards

Marcel



--00163630f1d71ad0cf04707f6a18-- --00163630f1d71ad0d804707f6a1a Content-Type: text/x-diff; charset=US-ASCII; name="0001-Modify-PBAP-SDP-record.patch" Content-Disposition: attachment; filename="0001-Modify-PBAP-SDP-record.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_fy1z0u2h0 RnJvbSBkMDAyY2MyZmRlYTYxYjgzNjcwOWJjZjc3MzU2NzllMDAxOGQ5ODI2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBaaHUgTGFuIDxtdGNiNDdAbW90b3JvbGEuY29tPgpEYXRlOiBN b24sIDMgQXVnIDIwMDkgMTc6MTk6MzkgKzA4MDAKU3ViamVjdDogW1BBVENIXSBNb2RpZnkgUEJB UCBTRFAgcmVjb3JkLgoKRml4IHRvIHBhc3MgUFRTIGNhc2UgVENfU0RBU19CVl8wM19JKHNpbmNl IFBUUzMuMiB1cGRhdGUyKS4KVGhlIGNvZGUgdHJpZWQgdG8gYXBwZW5kIHRoZSBVSU5UIHR5cGUg dmFsdWUgdG8gdGhlIHN1cHBvcnRlZApyZXNwb3NpdG9yaWVzLiAgSG93ZXZlciwgdGhlIHdyb25n IGZ1bmN0aW9uIHNkcF9zZXFfYWxsb2MoKQp3YXMgdXNlZC4gVGhpcyBmdW5jdGlvbiBhZGRzIDIg cmVkdW5kYW50IGJ5dGVzIChTRFBfU0VROCBhcwoweDM1LCBzZXEpIGFoZWFkIG9mIDB4MDgsIHNv IHRoYXQgbGF0ZXN0IFBUUyBJT1BUI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