Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/7] lib: Add macros for advertising instance flags
@ 2015-03-25  3:05 Arman Uguray
  2015-03-25  3:05 ` [PATCH 2/7] tools/btmgmt: Add --connectable option to add-adv Arman Uguray
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Arman Uguray @ 2015-03-25  3:05 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Arman Uguray

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


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-03-26  2:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-25  3:05 [PATCH 1/7] lib: Add macros for advertising instance flags Arman Uguray
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox