diff options
author | Arman Uguray <armansito@chromium.org> | 2015-03-25 21:53:39 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-03-25 22:30:28 -0400 |
commit | 495099962138732c28449d07f3b1988836659851 (patch) | |
tree | af4140b80dc9e755e6f12c77f03ad21e6fa7819c /include/net/bluetooth | |
parent | 08dc0e987e2855e28714670b8214dea1f76534ba (diff) |
Bluetooth: Add macros for advertising instance flags
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>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/mgmt.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index 68abd4b0c25d..b831242d48a4 100644 --- a/include/net/bluetooth/mgmt.h +++ b/include/net/bluetooth/mgmt.h | |||
@@ -554,6 +554,14 @@ struct mgmt_rp_add_advertising { | |||
554 | __u8 instance; | 554 | __u8 instance; |
555 | } __packed; | 555 | } __packed; |
556 | 556 | ||
557 | #define MGMT_ADV_FLAG_CONNECTABLE BIT(0) | ||
558 | #define MGMT_ADV_FLAG_DISCOV BIT(1) | ||
559 | #define MGMT_ADV_FLAG_LIMITED_DISCOV BIT(2) | ||
560 | #define MGMT_ADV_FLAG_MANAGED_FLAGS BIT(3) | ||
561 | #define MGMT_ADV_FLAG_TX_POWER BIT(4) | ||
562 | #define MGMT_ADV_FLAG_APPEARANCE BIT(5) | ||
563 | #define MGMT_ADV_FLAG_LOCAL_NAME BIT(6) | ||
564 | |||
557 | #define MGMT_OP_REMOVE_ADVERTISING 0x003F | 565 | #define MGMT_OP_REMOVE_ADVERTISING 0x003F |
558 | struct mgmt_cp_remove_advertising { | 566 | struct mgmt_cp_remove_advertising { |
559 | __u8 instance; | 567 | __u8 instance; |