aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/mgmt.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2013-10-11 11:23:20 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2013-10-11 12:18:13 -0400
commit14b49b9a49f0d80ef9a3ce7991b373f93016f5e4 (patch)
treee9ca77ade0ae7b7f9d61725a85632098e6910f79 /include/net/bluetooth/mgmt.h
parentbef64738e3fb87eabc6fbeededad0c44ea173384 (diff)
Bluetooth: Add management command for setting LE scan parameters
The scan interval and window parameters are used for LE passive background scanning and connection establishment. This allows userspace to change the values. These two values should be kept in sync with whatever is used for the scan parameters service on remote devices. And it puts the controlling daemon (for example bluetoothd) in charge of setting the values. Main use case would be to switch between two sets of values. One for foreground applications and one for background applications. At this moment, the values are only used for manual connection establishment, but soon that should be extended to background scanning and automatic connection establishment. 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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index 2ad433bb9a2e..518c5c84e39a 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -362,6 +362,13 @@ struct mgmt_cp_set_static_address {
362} __packed; 362} __packed;
363#define MGMT_SET_STATIC_ADDRESS_SIZE 6 363#define MGMT_SET_STATIC_ADDRESS_SIZE 6
364 364
365#define MGMT_OP_SET_SCAN_PARAMS 0x002C
366struct mgmt_cp_set_scan_params {
367 __le16 interval;
368 __le16 window;
369} __packed;
370#define MGMT_SET_SCAN_PARAMS_SIZE 4
371
365#define MGMT_EV_CMD_COMPLETE 0x0001 372#define MGMT_EV_CMD_COMPLETE 0x0001
366struct mgmt_ev_cmd_complete { 373struct mgmt_ev_cmd_complete {
367 __le16 opcode; 374 __le16 opcode;