]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Bluetooth: Add macros for advertising instance flags
authorArman Uguray <armansito@chromium.org>
Thu, 26 Mar 2015 01:53:39 +0000 (18:53 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 26 Mar 2015 02:30:28 +0000 (03:30 +0100)
This patch adds macro definitions for possible advertising instance
flags that can be passed to the "Add Advertising" command.

Signed-off-by: Arman Uguray <armansito@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/mgmt.h

index 68abd4b0c25dc79e4294d6ed2e26b0e715d576d7..b831242d48a4b8ce420661c9d56bd3e047f79bd6 100644 (file)
@@ -554,6 +554,14 @@ struct mgmt_rp_add_advertising {
        __u8    instance;
 } __packed;
 
+#define MGMT_ADV_FLAG_CONNECTABLE      BIT(0)
+#define MGMT_ADV_FLAG_DISCOV           BIT(1)
+#define MGMT_ADV_FLAG_LIMITED_DISCOV   BIT(2)
+#define MGMT_ADV_FLAG_MANAGED_FLAGS    BIT(3)
+#define MGMT_ADV_FLAG_TX_POWER         BIT(4)
+#define MGMT_ADV_FLAG_APPEARANCE       BIT(5)
+#define MGMT_ADV_FLAG_LOCAL_NAME       BIT(6)
+
 #define MGMT_OP_REMOVE_ADVERTISING     0x003F
 struct mgmt_cp_remove_advertising {
        __u8    instance;