From: Arman Uguray <armansito@chromium.org>
To: linux-bluetooth@vger.kernel.org
Cc: Arman Uguray <armansito@chromium.org>
Subject: [PATCH 1/7] lib: Add macros for advertising instance flags
Date: Tue, 24 Mar 2015 20:05:48 -0700 [thread overview]
Message-ID: <1427252754-27889-1-git-send-email-armansito@chromium.org> (raw)
This patch adds macro definitions for possible advertising instance
flags that can be passed to the "Add Advertising" mgmt command.
---
lib/mgmt.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/mgmt.h b/lib/mgmt.h
index 01d948b..eb13c42 100644
--- a/lib/mgmt.h
+++ b/lib/mgmt.h
@@ -498,6 +498,14 @@ struct mgmt_rp_add_advertising {
uint8_t instance;
} __packed;
+#define MGMT_ADV_FLAG_CONNECTABLE (1 << 0)
+#define MGMT_ADV_FLAG_DISCOV (1 << 1)
+#define MGMT_ADV_FLAG_LIMITED_DISCOV (1 << 2)
+#define MGMT_ADV_FLAG_MANAGED_FLAGS (1 << 3)
+#define MGMT_ADV_FLAG_TX_POWER (1 << 4)
+#define MGMT_ADV_FLAG_APPEARANCE (1 << 5)
+#define MGMT_ADV_FLAG_LOCAL_NAME (1 << 6)
+
#define MGMT_OP_REMOVE_ADVERTISING 0x003F
struct mgmt_cp_remove_advertising {
uint8_t instance;
--
2.2.0.rc0.207.ga3a616c
next reply other threads:[~2015-03-25 3:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-25 3:05 Arman Uguray [this message]
2015-03-25 3:05 ` [PATCH 2/7] tools/btmgmt: Add --connectable option to add-adv Arman Uguray
2015-03-25 3:05 ` [PATCH 3/7] tools/btmgmt: Add --discoverable " Arman Uguray
2015-03-25 3:05 ` [PATCH 4/7] tools/btmgmt: Add --limited-discov " Arman Uguray
2015-03-25 3:05 ` [PATCH 5/7] tools/btmgmt: Add --managed-flags " Arman Uguray
2015-03-25 3:05 ` [PATCH 6/7] tools/btmgmt: Add --tx-power " Arman Uguray
2015-03-25 3:05 ` [PATCH 7/7] tools/btmgmt: Add the 'clr-adv' command Arman Uguray
2015-03-26 2:29 ` [PATCH 1/7] lib: Add macros for advertising instance flags 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=1427252754-27889-1-git-send-email-armansito@chromium.org \
--to=armansito@chromium.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).