From: Marcel Holtmann <marcel@holtmann.org>
To: Francisco Alecrim <francisco.alecrim@openbossa.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 2/2] Correct UUIDs list to EIR
Date: Thu, 08 Apr 2010 05:59:16 +0200 [thread overview]
Message-ID: <1270699156.6375.22.camel@localhost.localdomain> (raw)
In-Reply-To: <1270591520-2078-2-git-send-email-francisco.alecrim@openbossa.org>
Hi Francisco,
> Correct create_ext_inquiry_response to response only UUIDs per-adapter.
> ---
> src/adapter.c | 3 ++-
> src/sdpd-service.c | 5 +++--
> src/sdpd.h | 3 ++-
> 3 files changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/src/adapter.c b/src/adapter.c
> index 47cef90..9e94d86 100644
> --- a/src/adapter.c
> +++ b/src/adapter.c
> @@ -816,7 +816,8 @@ static void update_ext_inquiry_response(struct btd_adapter *adapter)
>
> if (dev->ssp_mode > 0)
> create_ext_inquiry_response((char *) dev->name,
> - adapter->tx_power, data);
> + adapter->tx_power, adapter->services,
> + data);
>
> if (hci_write_ext_inquiry_response(dd, fec, data,
> HCI_REQ_TIMEOUT) < 0)
> diff --git a/src/sdpd-service.c b/src/sdpd-service.c
> index a8f7d47..4551577 100644
> --- a/src/sdpd-service.c
> +++ b/src/sdpd-service.c
> @@ -167,9 +167,10 @@ uint8_t get_service_classes(const bdaddr_t *bdaddr)
> }
>
> void create_ext_inquiry_response(const char *name,
> - int8_t tx_power, uint8_t *data)
> + int8_t tx_power, sdp_list_t *services,
> + uint8_t *data)
> {
> - sdp_list_t *list = sdp_get_record_list();
> + sdp_list_t *list = services;
> uint8_t *ptr = data;
> uint16_t uuid[24];
> int i, index = 0;
> diff --git a/src/sdpd.h b/src/sdpd.h
> index 1352a83..1f0a229 100644
> --- a/src/sdpd.h
> +++ b/src/sdpd.h
> @@ -95,4 +95,5 @@ int remove_record_from_server(uint32_t handle);
>
> uint8_t get_service_classes(const bdaddr_t *bdaddr);
> void create_ext_inquiry_response(const char *name,
> - int8_t tx_power, uint8_t *data);
> + int8_t tx_power, sdp_list_t *services,
> + uint8_t *data);
and this reminds me, that the list of UUIDs for local adapter and
inquiry response should be actually sorted. Currently we are a bit lazy
in that area. So please go ahead and fix that as well.
Regards
Marcel
next prev parent reply other threads:[~2010-04-08 3:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-06 22:05 [PATCH 1/2] Report local services(UUIDs) through DBus Francisco Alecrim
2010-04-06 22:05 ` [PATCH 2/2] Correct UUIDs list to EIR Francisco Alecrim
2010-04-08 3:59 ` Marcel Holtmann [this message]
2010-04-07 1:20 ` [PATCH 1/2] Report local services(UUIDs) through DBus Gustavo F. Padovan
2010-04-08 3:57 ` Marcel Holtmann
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=1270699156.6375.22.camel@localhost.localdomain \
--to=marcel@holtmann.org \
--cc=francisco.alecrim@openbossa.org \
--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;
as well as URLs for NNTP newsgroup(s).