From: Francisco Alecrim <francisco.alecrim@openbossa.org>
To: linux-bluetooth@vger.kernel.org
Cc: Francisco Alecrim <francisco.alecrim@openbossa.org>
Subject: [PATCH v3 2/2] Correct UUIDs list to EIR
Date: Wed, 7 Apr 2010 12:25:50 -0400 [thread overview]
Message-ID: <1270657550-28767-3-git-send-email-francisco.alecrim@openbossa.org> (raw)
In-Reply-To: <1270657550-28767-2-git-send-email-francisco.alecrim@openbossa.org>
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 c7a0c76..e1f6414 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);
--
1.6.3.3
next prev parent reply other threads:[~2010-04-07 16:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-07 16:25 [PATCH v3 0/2] Services through DBus and correct EIR Francisco Alecrim
2010-04-07 16:25 ` [PATCH v3 1/2] Report local services(UUIDs) through DBus Francisco Alecrim
2010-04-07 16:25 ` Francisco Alecrim [this message]
2010-04-07 17:35 ` [PATCH v3 0/2] Services through DBus and correct EIR Johan Hedberg
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=1270657550-28767-3-git-send-email-francisco.alecrim@openbossa.org \
--to=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).