diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-07-02 10:37:29 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-07-03 11:42:57 -0400 |
commit | a26f3dcff2cf5890f33d883c98d90cdfa51ed460 (patch) | |
tree | f9149c17177f5e56b5fef11856c2ed51791ef509 /include | |
parent | c71593dd34ae1fd46777662a522a32cfde86f073 (diff) |
Bluetooth: Add Load Connection Parameters command
This patch implements the new Load Connection Parameters mgmt command
that's intended to load the desired connection parameters for LE
devices.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/bluetooth/mgmt.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index 3c0f29614d1b..5b3e8009eddd 100644 --- a/include/net/bluetooth/mgmt.h +++ b/include/net/bluetooth/mgmt.h | |||
@@ -449,6 +449,21 @@ struct mgmt_cp_remove_device { | |||
449 | } __packed; | 449 | } __packed; |
450 | #define MGMT_REMOVE_DEVICE_SIZE MGMT_ADDR_INFO_SIZE | 450 | #define MGMT_REMOVE_DEVICE_SIZE MGMT_ADDR_INFO_SIZE |
451 | 451 | ||
452 | struct mgmt_conn_param { | ||
453 | struct mgmt_addr_info addr; | ||
454 | __le16 min_interval; | ||
455 | __le16 max_interval; | ||
456 | __le16 latency; | ||
457 | __le16 timeout; | ||
458 | } __packed; | ||
459 | |||
460 | #define MGMT_OP_LOAD_CONN_PARAM 0x0035 | ||
461 | struct mgmt_cp_load_conn_param { | ||
462 | __le16 param_count; | ||
463 | struct mgmt_conn_param params[0]; | ||
464 | } __packed; | ||
465 | #define MGMT_LOAD_CONN_PARAM_SIZE 2 | ||
466 | |||
452 | #define MGMT_EV_CMD_COMPLETE 0x0001 | 467 | #define MGMT_EV_CMD_COMPLETE 0x0001 |
453 | struct mgmt_ev_cmd_complete { | 468 | struct mgmt_ev_cmd_complete { |
454 | __le16 opcode; | 469 | __le16 opcode; |