From: Vinicius Costa Gomes <vcgomes@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Vinicius Costa Gomes <vcgomes@gmail.com>
Subject: [RFC BlueZ 08/13] peripheral/gap: Set the discoverable flag in the advertising
Date: Thu, 2 Jul 2015 11:33:49 -0300 [thread overview]
Message-ID: <1435847634-22831-9-git-send-email-vcgomes@gmail.com> (raw)
In-Reply-To: <1435847634-22831-1-git-send-email-vcgomes@gmail.com>
---
peripheral/gap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/peripheral/gap.c b/peripheral/gap.c
index 9c45057..e95394c 100644
--- a/peripheral/gap.c
+++ b/peripheral/gap.c
@@ -98,7 +98,7 @@ static void add_advertising(uint16_t index)
memset(buf, 0, sizeof(*cp) + sizeof(ad));
cp = buf;
cp->instance = 0x01;
- cp->flags = cpu_to_le32((1 << 0) | (1 << 1) | (1 << 4));
+ cp->flags = cpu_to_le32((1 << 0) | (1 << 1) | (1 << 3) | (1 << 4));
cp->duration = cpu_to_le16(0);
cp->timeout = cpu_to_le16(0);
cp->adv_data_len = sizeof(ad);
--
2.4.5
next prev parent reply other threads:[~2015-07-02 14:33 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-02 14:33 [RFC BlueZ 00/13] Introducing Soletta peripheral node-type Vinicius Costa Gomes
2015-07-02 14:33 ` [RFC BlueZ 01/13] build: Add configure-time checks for soletta Vinicius Costa Gomes
2015-07-02 14:33 ` [RFC BlueZ 02/13] shared: Add a mainloop implementation using soletta Vinicius Costa Gomes
2015-07-02 14:33 ` [RFC BlueZ 03/13] peripheral/gatt: Fix usage of mainloop_ functions Vinicius Costa Gomes
2015-07-02 14:33 ` [RFC BlueZ 04/13] peripheral/gatt: Add a way to external services to register services Vinicius Costa Gomes
2015-07-02 14:33 ` [RFC BlueZ 05/13] peripheral/gap: Fix missing includes Vinicius Costa Gomes
2015-07-02 14:33 ` [RFC BlueZ 06/13] peripheral/gap: Init the gatt_server Vinicius Costa Gomes
2015-07-02 14:33 ` [RFC BlueZ 07/13] peripheral: Disable support for static random addresses Vinicius Costa Gomes
2015-07-02 14:33 ` Vinicius Costa Gomes [this message]
2015-07-02 14:33 ` [RFC BlueZ 09/13] peripheral/gatt: Use LOW security level Vinicius Costa Gomes
2015-07-02 14:33 ` [RFC BlueZ 10/13] soletta/heartrate: Add a node-type for the Heartrate profile Vinicius Costa Gomes
2015-07-02 14:33 ` [RFC BlueZ 11/13] .gitignore: Ignore soletta generated files Vinicius Costa Gomes
2015-07-02 14:33 ` [RFC BlueZ 12/13] build: Add heartrate soletta node type to the build system Vinicius Costa Gomes
2015-07-02 14:33 ` [RFC BlueZ 13/13] soletta: Add a sample flow using the heartrate node Vinicius Costa Gomes
2015-07-03 8:09 ` [RFC BlueZ 00/13] Introducing Soletta peripheral node-type Luiz Augusto von Dentz
2015-07-03 17:14 ` Vinicius Costa Gomes
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=1435847634-22831-9-git-send-email-vcgomes@gmail.com \
--to=vcgomes@gmail.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;
as well as URLs for NNTP newsgroup(s).