aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArman Uguray <armansito@chromium.org>2015-03-23 18:57:09 -0400
committerMarcel Holtmann <marcel@holtmann.org>2015-03-23 20:53:45 -0400
commit841a6664f213f76a9bc1bfd07a466d3dbe281a88 (patch)
tree78f92ec7293e79ee95346b2520cc668e397245fd
parent17b2772b8fe3442b46c99fb91150a480acb7ebc4 (diff)
Bluetooth: Add definitions for Add/Remove Advertising API
This patch adds definitions for the Add Advertising and Remove Advertising MGMT commands and events. Signed-off-by: Arman Uguray <armansito@chromium.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r--include/net/bluetooth/mgmt.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index a1a68671bf88..68abd4b0c25d 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -539,6 +539,30 @@ struct mgmt_rp_read_adv_features {
539 __u8 instance[0]; 539 __u8 instance[0];
540} __packed; 540} __packed;
541 541
542#define MGMT_OP_ADD_ADVERTISING 0x003E
543struct mgmt_cp_add_advertising {
544 __u8 instance;
545 __le32 flags;
546 __le16 duration;
547 __le16 timeout;
548 __u8 adv_data_len;
549 __u8 scan_rsp_len;
550 __u8 data[0];
551} __packed;
552#define MGMT_ADD_ADVERTISING_SIZE 11
553struct mgmt_rp_add_advertising {
554 __u8 instance;
555} __packed;
556
557#define MGMT_OP_REMOVE_ADVERTISING 0x003F
558struct mgmt_cp_remove_advertising {
559 __u8 instance;
560} __packed;
561#define MGMT_REMOVE_ADVERTISING_SIZE 1
562struct mgmt_rp_remove_advertising {
563 __u8 instance;
564} __packed;
565
542#define MGMT_EV_CMD_COMPLETE 0x0001 566#define MGMT_EV_CMD_COMPLETE 0x0001
543struct mgmt_ev_cmd_complete { 567struct mgmt_ev_cmd_complete {
544 __le16 opcode; 568 __le16 opcode;
@@ -742,3 +766,13 @@ struct mgmt_ev_local_oob_data_updated {
742 __le16 eir_len; 766 __le16 eir_len;
743 __u8 eir[0]; 767 __u8 eir[0];
744} __packed; 768} __packed;
769
770#define MGMT_EV_ADVERTISING_ADDED 0x0023
771struct mgmt_ev_advertising_added {
772 __u8 instance;
773} __packed;
774
775#define MGMT_EV_ADVERTISING_REMOVED 0x0024
776struct mgmt_ev_advertising_removed {
777 __u8 instance;
778} __packed;