summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2010-12-11 23:57:55 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2010-12-12 00:04:17 +0200
commit24a34a8b1f8615ad79199efdb6fea479509464b4 (patch)
tree1bdb1fdfdd0c2bc466d559cbd398a9468d865d98 /lib
parent9ee252fe7dec24d8906724b9189e28c24331005e (diff)
downloadbluez-24a34a8b1f8615ad79199efdb6fea479509464b4.tar.gz
Merge read_mode management command into read_info
The read_mode and read_info commands are issued only once in the beginning for each adapter so it doesn't make sense to have the information fetching split across two different commands. Instead all necessary info can be fetched through the read_info command.
Diffstat (limited to 'lib')
-rw-r--r--lib/mgmt.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/lib/mgmt.h b/lib/mgmt.h
index 80b4de58d..70cf4b6a1 100644
--- a/lib/mgmt.h
+++ b/lib/mgmt.h
@@ -53,10 +53,14 @@ struct mgmt_cp_read_info {
uint16_t index;
} __packed;
struct mgmt_rp_read_info {
- uint8_t status;
uint16_t index;
uint8_t type;
+ uint8_t powered;
+ uint8_t discoverable;
+ uint8_t pairable;
+ uint8_t sec_mode;
bdaddr_t bdaddr;
+ uint8_t dev_class[3];
uint8_t features[8];
uint16_t manufacturer;
uint8_t hci_ver;
@@ -65,19 +69,6 @@ struct mgmt_rp_read_info {
#define MGMT_OP_READ_STATISTICS 0x0005
-#define MGMT_OP_READ_MODE 0x0006
-struct mgmt_cp_read_mode {
- uint16_t index;
-} __packed;
-struct mgmt_rp_read_mode {
- uint8_t status;
- uint16_t index;
- uint8_t enabled;
- uint8_t mode;
-} __packed;
-
-#define MGMT_OP_WRITE_MODE 0x0007
-
#define MGMT_EV_CMD_COMPLETE 0x0001
struct mgmt_ev_cmd_complete {
uint16_t opcode;