aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/mgmt.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2015-03-14 20:53:25 -0700
committerJohan Hedberg <johan.hedberg@intel.com>2015-03-15 10:03:41 +0200
commitd3d5305bfd1cb48c8f44207abb567276a1e09cc7 (patch)
tree5bcc688e2ccdb2b9c5936d3a18a83edc23d75cdf /include/net/bluetooth/mgmt.h
parentBluetooth: Use BIT(n) macro instead of manually encoding (1 << n) (diff)
downloadlinux-dev-d3d5305bfd1cb48c8f44207abb567276a1e09cc7.tar.xz
linux-dev-d3d5305bfd1cb48c8f44207abb567276a1e09cc7.zip
Bluetooth: Add simple version of Read Advertising Features command
This adds support for the simplest possible version of Read Advertising Features management command. It allows basic testing of the interface. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net/bluetooth/mgmt.h')
-rw-r--r--include/net/bluetooth/mgmt.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index f3baad589db0..4d0ccd194c01 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -517,6 +517,17 @@ struct mgmt_rp_read_ext_index_list {
} entry[0];
} __packed;
+#define MGMT_OP_READ_ADV_FEATURES 0x0003D
+#define MGMT_READ_ADV_FEATURES_SIZE 0
+struct mgmt_rp_read_adv_features {
+ __le32 supported_flags;
+ __u8 max_adv_data_len;
+ __u8 max_scan_rsp_len;
+ __u8 max_instances;
+ __u8 num_instances;
+ __u8 instance[0];
+} __packed;
+
#define MGMT_EV_CMD_COMPLETE 0x0001
struct mgmt_ev_cmd_complete {
__le16 opcode;