2
* BlueZ - Bluetooth protocol stack for Linux
4
* Copyright (C) 2010 Nokia Corporation
5
* Copyright (C) 2010 Marcel Holtmann <marcel@holtmann.org>
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
#define __packed __attribute__((packed))
32
#define MGMT_HDR_SIZE 4
34
#define MGMT_OP_READ_VERSION 0x0001
35
struct mgmt_rp_read_version {
40
#define MGMT_OP_READ_FEATURES 0x0002
41
struct mgmt_rp_read_features {
45
#define MGMT_OP_READ_INDEX_LIST 0x0003
46
struct mgmt_rp_read_index_list {
47
uint16_t num_controllers;
51
#define MGMT_OP_READ_INFO 0x0004
52
struct mgmt_cp_read_info {
55
struct mgmt_rp_read_info {
61
uint16_t manufacturer;
66
#define MGMT_OP_READ_STATISTICS 0x0005
68
#define MGMT_OP_READ_MODE 0x0006
69
struct mgmt_cp_read_mode {
72
struct mgmt_rp_read_mode {
79
#define MGMT_OP_WRITE_MODE 0x0007
81
#define MGMT_EV_CMD_COMPLETE 0x0001
82
struct mgmt_ev_cmd_complete {
87
#define MGMT_EV_CMD_STATUS 0x0002
88
struct mgmt_ev_cmd_status {
93
#define MGMT_EV_CONTROLLER_ERROR 0x0003
94
struct mgmt_ev_controller_error {
99
#define MGMT_EV_INDEX_ADDED 0x0004
100
struct mgmt_ev_index_added {
104
#define MGMT_EV_INDEX_REMOVED 0x0005
105
struct mgmt_ev_index_removed {